Home / yiiframework / Yii / CVE-2024-58136
CVE-2024-58136: is it exploited, and which versions of yiiframework Yii are affected and fixed?
CVE-2024-58136 is an improper Protection of Alternate Path vulnerability in yiiframework Yii, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on May 2, 2025, with a federal due date of May 23, 2025. Affected: yiisoft/yii2 before 2.0.52 (GitHub advisory GHSA-ggwg-cmwp-46r5). Fixed in 2.0.52 (GitHub advisory GHSA-ggwg-cmwp-46r5). Severity: Critical (9.0, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2024-58136?
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.
From the CVE record by mitre, last updated October 21, 2025, 22:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| yiiframework | Yii | from 2 before 2.0.52 | 2.0.52 |
As the CVE record by mitre states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | yiisoft/yii2 | < 2.0.52 | 2.0.52 | GHSA-ggwg-cmwp-46r5 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 22, 2025. Summary: yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| yiiframework | yii | before 2.0.52 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:14 UTC.
How severe is CVE-2024-58136?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | mitre |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-58136 exploited in the wild?
- CISA KEV
- Listed as Yiiframework Yii Improper Protection of Alternate Path Vulnerability, added May 2, 2025; federal agencies must act by May 23, 2025
- Required action
- Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, May 2, 2025)
- EPSS
- 91.8% probability of exploitation activity in the next 30 days, percentile 99.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-424 Improper Protection of Alternate Path
Where are the vendor advisories and references?
- https://github.com/yiisoft/yii2/pull/20232
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ technical-description
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 government-resource
When was it published, and where is the official record?
- Reserved
- April 10, 2025
- Published
- April 10, 2025, 00:00 UTC
- CVE record updated
- October 21, 2025, 22:55 UTC by mitre
- NVD
- Analyzed, last modified June 17, 2026, 08:14 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Yii?
- Sep 21, 2023CVE-2015-5467 Yiiframework Yii: path traversal (reading or writing files outside the intended folder)
- Jul 28, 2023CVE-2022-31454 Yiiframework Yii: cross-site scripting (XSS) disputed
- Apr 4, 2023CVE-2023-26750 Yiiframework Yii: SQL injection disputed
- Jan 28, 2019CVE-2018-20745 Yiiframework Yii: origin not validated
- Mar 21, 2018CVE-2018-8074 Yiiframework Yii: code injection (remote code execution)
- Mar 21, 2018CVE-2018-8073 Yiiframework Yii: code injection (remote code execution)
- Mar 21, 2018CVE-2018-7269 Yiiframework Yii: SQL injection
- Jul 21, 2017CVE-2017-11516 Yiiframework Yii: cross-site scripting (XSS)
Questions about CVE-2024-58136
Is CVE-2024-58136 exploited in the wild?
Yes. CISA added CVE-2024-58136 to its Known Exploited Vulnerabilities catalog on May 2, 2025 and set federal agencies a due date of May 23, 2025. FIRST's EPSS gives it a 91.8% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of yiiframework Yii are affected by CVE-2024-58136?
yiisoft/yii2 before 2.0.52, per the GitHub advisory GHSA-ggwg-cmwp-46r5. The tables above give every range the sources list.
Which version fixes CVE-2024-58136?
2.0.52, per the GitHub advisory GHSA-ggwg-cmwp-46r5. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-58136?
Critical (9.0, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2024-58136?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.