Every CVE Search/ Get API key

CVE-2024-58136

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

9.0 CriticalIn KEVFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

87.8%Up 87.7 points since Apr 10, 2025
90%50%10%1%

What each source reports

CVE List Score used 9.0

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.

Record
CVE-2024-58136
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-424
Updated
2026-11-02
EUVDEUVD-2025-10502 9.0

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.

Record
EUVD-2025-10502
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-ggwg-cmwp-46r5 9.0

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

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.

Record
GHSA-ggwg-cmwp-46r5
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H
Weakness
CWE-424
Updated
2026-11-02
CISA KEV No score

Yiiframework Yii Improper Protection of Alternate Path Vulnerability

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.

Record
CVE-2024-58136
Weakness
CWE-424
Updated
2026-11-02
NVD 9.0

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.

Record
CVE-2024-58136
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-424
Updated
2026-11-02
OSV 9.0

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.

Record
CVE-2024-58136
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-424
Updated
2026-11-02
OSVGHSA-ggwg-cmwp-46r5 9.0

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

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.

Record
GHSA-ggwg-cmwp-46r5
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H
Weakness
CWE-424
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
yiisoft/yii2
Packagist
before 2.0.52
2.0.52
yiisoft/yii2
Packagist
before 2.0.52, plus listed versions
2.0.02.0.0-alpha2.0.0-beta2.0.0-rc2.0.1
Show 45 moreShow less
2.0.102.0.112.0.11.12.0.11.22.0.122.0.12.12.0.12.22.0.132.0.13.12.0.13.22.0.13.32.0.142.0.14.12.0.14.22.0.152.0.15.12.0.162.0.16.12.0.172.0.182.0.192.0.22.0.202.0.212.0.222.0.232.0.242.0.252.0.262.0.272.0.282.0.292.0.32.0.302.0.312.0.322.0.332.0.342.0.352.0.362.0.372.0.382.0.392.0.39.12.0.39.2
2.0.52

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
NucleiYii2 PHP Framework < 2.0.52 - Remote Code Execution

History

History
RecordedChangedSources
exploitation
first indexedCVE List, EUVD, GitHub Advisories, CISA KEV, Nuclei, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-58136 is a critical vulnerability (CVSS 9.0) in Yiiframework Yii, published April 10, 2025. CISA lists it as known to be exploited, since May 2, 2025. EUVD reports exploitation since May 2, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 87.8%, the 99th percentile. Fixed in yiisoft/yii2 2.0.52.

References

Show 4 moreShow less
This page doesn't list everything

Left out here: 26 versions. The JSON record has them.

MoveEnter Open