CVE-2024-58136 — Vulnerability in yiisoft/yii2 — CVE Details
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Summary
Advisory Timeline
- First published April 10, 2025 (550 days ago).
- Last revised October 22, 2025 — 196 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 22 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "yiisoft/yii2:^2.0.52"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| yiisoft/yii2 | packagist | 2.0.0, 2.0.0-alpha, 2.0.0-beta, 2.0.0-rc (+72 more) | 2.0.52 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-424
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-58136ADVISORY
- https://github.com/yiisoft/yii2/pull/20232WEB
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709WEB
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12WEB
- https://github.com/yiisoft/yii2PACKAGE
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52WEB
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcmsWEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136WEB
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52WEB
Frequently Asked Questions
- What is CVE-2024-58136?
- yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2024-58136?
- CVE-2024-58136 affects yiisoft/yii2. This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-58136 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: May 2, 2025
Remediation deadline: May 23, 2025
Also Known As
Related CVEs
- CVE-2026-107845CRITICAL
Contao: Cross-site scripting in the comments bundle
- CVE-2015-5467CRITICAL
Yii2 allows attackers to execute any local .php file via a relative path in the view parameter
- CVE-2026-92161CRITICAL
FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies