Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-58136

CRITICAL 9.0ExploitedEPSS 98%

yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key

Also known as GHSA-ggwg-cmwp-46r5

Mitigation

  • Upgrade yiisoft/yii2 to 2.0.52 or later.

Who should check

  • Projects that depend on Packagist package yiisoft/yii2 (< 2.0.52)
  • Anyone running yiiframework Yii >= 2, < 2.0.52

Vulnerability facts

Affected
yiisoft/yii2 < 2.0.52
Fixed in
2.0.52
Exploited in the wild
Yes: in CISA KEV since 2025-05-02; federal due date 2025-05-23
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
25.32% chance of exploitation in 30 days (percentile 98, 2026-11-26)
CWE
CWE-424
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist yiisoft/yii2< 2.0.522.0.52osv
yiiframework Yii>= 2, < 2.0.52—cvelist

Timeline

  1. 2025-04-10 Published
  2. 2025-05-02 Added to CISA KEV (exploited in the wild)
  3. 2025-05-23 CISA remediation due date for US federal agencies
  4. 2026-06-17 Last modified

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-58136. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58136.md
Affected: yiisoft/yii2 < 2.0.52
Fixed in: 2.0.52

Steps:
1. Search this machine and project for yiisoft/yii2 (Packagist), yiiframework Yii: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-58136 being exploited?

Yes. CISA lists CVE-2024-58136 in its Known Exploited Vulnerabilities catalog since 2025-05-02, which means attacks have been seen. No public exploit code is known. EPSS estimates a 25.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-58136?

Critical: CVSS 9.0 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2024-58136?

yiisoft/yii2 < 2.0.52.

Is there a fix for CVE-2024-58136?

Yes. Fixed in 2.0.52. Upgrade yiisoft/yii2 to 2.0.52 or later.

How do I check if I'm affected by CVE-2024-58136?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors