Actively exploited vulnerability / CVE-2024-58136
Yii 2: a flaw can let attackers take control of web applications
This flaw in the Yii 2 framework can let a remote attacker run their own code on the server hosting the application. That could give them access to company data, let them change it, or let them misuse the server. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2024-58136 · EUVD-2025-10502
- Severity
- Critical (9/10)
- On the CISA list (US)
- yes, since 2 May 2025
- Deadline given to US federal agencies
- 23 May 2025
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 25.3% (FIRST's estimate for the next 30 days)
Does it concern you?
Yii is a programming framework used to build websites and web applications in PHP, so it may be in your company if you have a custom-built site or web app. It can also be inside other products built on Yii, such as Craft CMS.
All Yii 2 versions before 2.0.52 are affected. Ask your developer or the company that maintains your website which Yii version the application uses and whether it relies on products like Craft CMS.
Affected products and versions
- Yiiframework Yii
- yii: before 2.0.52
What to do
Have Yii updated to version 2.0.52 or later, and install the vendor's latest update for products built on Yii, such as Craft CMS. If updating is not possible, follow the vendor's guidance or stop using the application until it is fixed.
Versions that contain the fix: 2.0.52.
The official description
The text below is the description from the public database.
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.
Sources
- CVE Program
- GitHub Advisory Database
- Vendor advisory: yiiframework.com
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.