# CVE-2024-58136: yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key

- Severity: Critical 9.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2025-05-02. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 91.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-10T00:00:00.000Z
- Modified: 2026-06-17T08:14:41.660Z
- Also known as: GHSA-ggwg-cmwp-46r5
- Weaknesses: CWE-424
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- yiiframework Yii: from 2 before 2.0.52; before 2.0.52
- yiisoft/yii2 (Packagist): before 2.0.52

## Every score

- mitre: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/> (exploit, technical-description, third-party-advisory)
- <https://github.com/yiisoft/yii2/pull/20232> (patch, web)
- <https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709> (issue-tracking, web)
- <https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12> (patch, web)
- <https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52> (issue-tracking, web)
- <https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52> (kev, vendor-advisory, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-58136> (advisory, kev)
- <https://github.com/yiisoft/yii2> (package)
- <https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms> (web)

## Sources

- CVE List: [CVE-2024-58136](https://www.cve.org/CVERecord?id=CVE-2024-58136), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-ggwg-cmwp-46r5](https://github.com/advisories/GHSA-ggwg-cmwp-46r5), CC-BY-4.0, modified 2025-10-22
- NVD: [CVE-2024-58136](https://nvd.nist.gov/vuln/detail/CVE-2024-58136), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2024-58136](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-58136), CC0-1.0, modified 2025-05-02

---

Page: https://cve.day/CVE-2024-58136 · Whole record: https://cve.day/CVE-2024-58136.json · Rebuilt by cve.day 2026-11-25T22:58:52.522Z
