CVE-2025-2689 yiisoft Yii2 SortableIterator.php getIterator deserialization
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.
Which versions are affected by CVE-2025-2689?
2 open source packages ship an affected version, including yiisoft/yii2-dev. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
yiisoft/yii2-dev Packagist | All versions to 2.0.45 | None |
yiisoft/yii2-dev Packagist | All versions to 2.0.45 | None |
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.
Other vulnerabilities in yiisoft Yii2
- CVE-2024-58136 Yiiframework Yii Improper Protection of Alternate Path
- CVE-2015-5467 Yii2 allows attackers to execute any local .php file via a relative path in the view parameter
- CVE-2023-26750 SQL injection in n/a
- CVE-2018-7269 Yii SQL injection vulnerability
- CVE-2018-8073 yii2-redis Potential Remote code execution
Sources
Also known as GHSA-88m2-j94x-v4fx.