---
title: "CVE-2024-58136: Yiiframework Yii Improper Protection of Alternate Path Vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-58136/
description: "CVE-2024-58136 (Yiiframework Yii): Exploited in the wild (CISA KEV). Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an class…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-04-10
date_modified: 2025-10-22
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-58136"
kev: true
cvss: 9
epss: 0.87757
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-58136: Yiiframework Yii Improper Protection of Alternate Path Vulnerability

**Signal:** Exploited: patch now if you run it. CISA has confirmed exploitation in the wild. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Yes, if you run Yiiframework Yii. CISA added this CVE to its Known Exploited Vulnerabilities catalog on 2025-05-02, which means there is reliable evidence of exploitation in the wild. US federal agencies must remediate by 2025-05-23 ; treat that as the outer limit, not the target.
- EPSS 87.8% , percentile 99.8: FIRST’s model estimates a 87.8% chance of exploitation activity in the next 30 days, higher than 99.8% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes yiisoft/yii2 (Composer (PHP)) < 2.0.52, fixed in 2.0.52 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Composer (PHP) `yiisoft/yii2` < 2.0.52 → fixed: 2.0.52

## Affected products (CVE record)

- yiiframework Yii: 2 < 2.0.52

## Severity

- mitre CVSS 3.1: 9 `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 `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H`

## Exploitation

- CISA KEV: added 2025-05-02; federal due date 2025-05-23. Known ransomware use: Unknown.
- CISA 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.
- CISA SSVC assessment: exploitation active , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 87.76% probability of exploitation activity in the next 30 days; percentile 99.8.

## Sources

- [Listed in CISA KEV notes (yiiframework.com)](https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52)
- [GitHub Advisory GHSA-ggwg-cmwp-46r5](https://github.com/advisories/GHSA-ggwg-cmwp-46r5)
- [CVE.org record CVE-2024-58136](https://www.cve.org/CVERecord?id=CVE-2024-58136)
- [NVD entry CVE-2024-58136](https://nvd.nist.gov/vuln/detail/CVE-2024-58136)
- [CISA Known Exploited Vulnerabilities catalog entry](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136)
- [github.com](https://github.com/yiisoft/yii2/pull/20232)
- [github.com](https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709)
- [github.com](https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12)
- [github.com](https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52)
- [sensepost.com](https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/)

---
Source page: https://erroneo.us/security/cve/CVE-2024-58136/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
