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

Published Apr 10, 2025
·
Updated

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.

Other sources

Yii Framework contains an improper protection of alternate path vulnerability that may allow a remote attacker to execute arbitrary code. This vulnerability could affect other products that implement Yii, including—but not limited to—Craft CMS, as represented by CVE-2025-32432.

CISA

Affected Software

4 affected componentsFixes available
composer/yiisoft/yii2<2.0.52
2.0.52
Yii Yii 2<2.0.52
Yiiframework Yii
Yiiframework Yii<2.0.52

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/yiisoft/yii2 to a version that resolves this vulnerability.

    Fixed in 2.0.52
  2. Remove

    Remove Yii Framework from your environment.

    Discontinue use or uninstall the product if vendor mitigations are unavailable.

  3. Remove

    Remove Yii Framework Gii from your environment.

    Discontinue use or uninstall the product if vendor mitigations are unavailable.

  4. Remove

    Remove composer/yiisoft/yii2 from your environment.

    Discontinue use or uninstall the product if vendor mitigations are unavailable.

  5. Compensating control

    Apply mitigations per vendor instructions and follow applicable BOD 22-01 guidance for cloud services.

Event History

Apr 10, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:31 AM
Data Sourced
via GitHub·03:31 AM
DescriptionSeverityWeaknessAffected Software
Apr 25, 2025
News Published
via BleepingComputer·07:44 PM
News Published
via BleepingComputer·07:45 PM
May 2, 2025
Known Exploited
via CISA·12:00 AM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-58136?

CVE-2024-58136 has been classified as a critical vulnerability due to its exploitation in the wild.

2

How do I fix CVE-2024-58136?

To fix CVE-2024-58136, you should upgrade Yii 2 to version 2.0.52 or later.

3

What software is affected by CVE-2024-58136?

CVE-2024-58136 affects Yii 2 versions prior to 2.0.52.

4

What kind of vulnerability is CVE-2024-58136?

CVE-2024-58136 is a vulnerability related to the mishandling of behavior attachments in the Yii framework.

5

When was CVE-2024-58136 exploited in the wild?

CVE-2024-58136 was reportedly exploited in the wild between February and April 2025.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203