CVE-2024-58136: Yiiframework Yii Improper Protection of Alternate Path Vulnerability
CVE-2024-58136 is a critical-severity flaw (CVSS 9.0) affecting yii, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.0 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 87.8% (top 1%) |
| CISA exploited list | Yes, fix due 2025-05-23 |
| Weakness | CWE-424 |
| Published | 2025-04-10 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
- Nuclei scan template: Yii2 PHP Framework < 2.0.52 - Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-58136?
yii: upgrade to 2.0.52. Exact commands for each OS are on this page.
Is CVE-2024-58136 being exploited?
Yes. CVE-2024-58136 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2024-58136 affect?
CVE-2024-58136 affects yii. Severity is critical (CVSS 9.0). 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.
How urgent is CVE-2024-58136?
Priority 91/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2025-32027 MEDIUM 6.1 UPGRADE Yii is an open source PHP web framework
- CVE-2025-2690 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, was found in yiisoft Yii2 up to 2.0.39
- CVE-2025-2689 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, has been found in yiisoft Yii2 up to 2.0.45
- CVE-2024-4990 CRITICAL 9.1 DOWNGRADE In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic me
- CVE-2024-32877 MEDIUM 4.2 DOWNGRADE Yii 2 is a PHP application framework