Vulnerability record

CVE-2024-58136

Yiiframework Yii Improper Protection of Alternate Path Vulnerability

Severity: CriticalExploitation: Exploitation confirmedCISA KEV
What should I do?

This vulnerability is in the CISA Known Exploited Vulnerabilities catalog: attackers are using it. If you run Yii, fix it now.

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.

US federal civilian agencies must remediate by May 23, 2025.

Patch status

Official fix available since

Apply the vendor's update to every affected system. Check the fixed-in versions below where known.

Basis: NVD patch reference

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: NIST National Vulnerability Database. Official vulnerability data, reproduced as published.

Affected products

Products affected by this vulnerability, with versions and the source of each entry
ProductVendorAffected versionsFixed inSource
YiiYiiframework< 2.0.522.0.52KEV

Sources: KEV = CISA Known Exploited Vulnerabilities catalog.

Intelligence timeline

Developments from the last 30 days, newest first.

  1. CVSS scoredUpdateKEV

    CVE-2024-58136 scored CVSS 9.8: Yiiframework Yii, Yiiframework Yii Improper Protection of Alternate Path Vulnerability

    CISA lists this as exploited in the wild. Unpatched Yii systems are exposed to active attacks now.

    Basis: NIST National Vulnerability Database

  2. Patch releasedUpdateKEV

    Patch released for CVE-2024-58136: Yiiframework Yii, Yiiframework Yii Improper Protection of Alternate Path Vulnerability

    An official fix is now available for Yiiframework Yii. This vulnerability is being exploited, so apply it promptly.

    Basis: NVD patch reference

1 earlier event is available with a subscription. See plans.

Coverage

We have not published a story about this vulnerability yet.

References

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