Yiiframework Yii Improper Protection of Alternate Path
CVE-2024-58136 is a critical-severity improper protection of alternate path vulnerability in Yii from Yiiframework, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 2.0.52 as the first without the flaw, so updating Yii to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on May 2, 2025, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Yii to 2.0.52 or a later version.
- CISA's 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.
- Read the advisory on yiiframework.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Yiiframework | Yii | 2 up to, but not including, 2.0.52 | 2.0.52 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.0 | Critical | CNA (mitre.org) |
| CVSS 3.1 | 9.8 | Critical | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: 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.
How developers prevent this class of flaw
- Deploy different layers of protection to implement security in depth.
More Improper Protection of Alternate Path vulnerabilities (CWE-424)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
Third-party and government advisories
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136US Government Resource
Technical write-ups (may include proof of concept)
- sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/Exploit, Third Party Advisory
Other references
- github.com/yiisoft/yii2/compare/2.0.51...2.0.52Issue Tracking
Other vulnerabilities in Yii
- 9.8 Critical severity
- 9.8 Critical severity
- 9.1 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
Recent Improper Protection of Alternate Path vulnerabilities
- 8.5 High severity
- 7.0 High severity
- 7.8 High severity
- 8.8 High severity
- 7.8 High severity
- 7.1 High severity
Spotted an error? Tell us.