# 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.

- Page: https://www.vulneraibility.com/cve/CVE-2024-58136
- CVSS: 9.0
- Known exploited: yes, in CISA KEV since 2025-05-02; CISA due date 2025-05-23
- EPSS: 87.76%
- Detection templates only, no public exploit found: 1 Nuclei template
- CISA SSVC: exploitation active, automatable no, technical impact total (assessed 2025-05-02)
- Weakness: CWE-424
- Also known as: GHSA-ggwg-cmwp-46r5
- Published: 2025-04-10

## Affected versions

- yiiframework Yii: affected >= 2 and < 2.0.52

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://github.com/yiisoft/yii2/pull/20232
- [other] https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- [other] https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- [other] https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- [other] https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
- [other] https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
