CVE-2025-2689 yiisoft Yii2 SortableIterator.php getIterator deserialization

Medium 5.3 Published Updated

Remote attackers can exploit unsafe deserialization in Yii2's SortableIterator to execute arbitrary code, requiring immediate framework upgrades.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-2689?

CVE-2025-2689 is a medium-severity unsafe deserialization vulnerability in yiisoft Yii2, published on 24 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability, which was classified as critical, has been found in yiisoft Yii2 up to 2.0.45. Affected by this issue is the function getIterator of the file symfony\finder\Iterator\SortableIterator.php. The manipulation leads to deserialization. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

Weakness: CWE-502, CWE-20

Which versions are affected by CVE-2025-2689?

2 open source packages ship an affected version, including yiisoft/yii2-dev. It affects 1 product.

PackageAffectedFixed in
yiisoft/yii2-dev PackagistAll versions to 2.0.45None
yiisoft/yii2-dev PackagistAll versions to 2.0.45None

Products include Yiiframework Yii.

How do I fix CVE-2025-2689?

No fix has been published for CVE-2025-2689 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-2689 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-2689 exists.

Sources

Also known as GHSA-88m2-j94x-v4fx.

Is CVE-2025-2689 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free