CVE-2024-58136
Description
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.
Severity
CRITICAL
CVSS v3
9.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
87.757%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-05-02
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-424: Improper Protection of Alternate Path
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Yiiframework Yii Improper Protection of Alternate Path Vulnerability |
|---|---|
| Vendor / product | Yiiframework / Yii |
| Date added | 2025-05-02 |
| Federal remediation due date | 2025-05-23 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-05-02 |
Timeline
- 2025-04-10Published by the CNA00:00 UTC
- 2025-04-10GitHub advisory published (GHSA-ggwg-cmwp-46r5)same day
- 2025-05-02Added to the CISA KEV catalog22 days after publication
- 2025-05-02CISA SSVC decision recorded22 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2024-58136: Yii2 PHP Framework < 2.0.52 - Remote Code Execution
GitHub advisory GHSA-ggwg-cmwp-46r5, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist yiisoft/yii2 | before 2.0.52 | 2.0.52 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| yiiframework yii | from 2 before 2.0.52fixed in 2.0.52before 2.0.52fixed in 2.0.52 | 2.0.522.0.52 |
References
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- https://github.com/yiisoft/yii2/pull/20232
- 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/
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-58136'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-58136'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-58136'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-58136'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2024-58136'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).