Yii 2 <=2.0.51 __class behavior attach flaw CVE-2024-58136
CVE-2024-58136 Published on April 10, 2025
Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990 regression, as exploited in the wild in February through April 2025.
Known Exploited Vulnerability
This Yiiframework Yii Improper Protection of Alternate Path Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. Yii Framework contains an improper protection of alternate path vulnerability that may allow a remote attacker to execute arbitrary code. This vulnerability could affect other products that implement Yii, including—but not limited to—Craft CMS, as represented by CVE-2025-32432.
The following remediation steps are recommended / required by May 23, 2025: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Weakness Type
Improper Protection of Alternate Path
The product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources.
Products Associated with CVE-2024-58136
Want to know whenever a new CVE is published for Yiiframework Yii? stack.watch will email you.
Affected Versions
yiiframework Yii:- Version 2 and below 2.0.52 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2024-58136
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| composer | craftcms/cms | >= 5.0.0-RC1, <= 5.8.20 | 5.8.21 |
| composer | craftcms/cms | >= 4.0.0-RC1, <= 4.16.16 | 4.16.17 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.