Live threats

All CVEs / Yiiframework

CVE-2024-58136Yiiframework Yii

Remote Code Execution in Yii Framework via Improper Behavior Handling

Critical 9.8 KEV No auth neededHigh EPSS

Priority
76
CVSS 3.1
9.8
EPSS
25.3%
probability of exploitation in 30 days · percentile 98
Auth required
No
In KEV since
May 2, 2025
CISA deadline
May 23, 2025
Ransomware use
Unknown
Published
Apr 10, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-424
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Yii 2 before version 2.0.52 improperly handles the attachment of behaviors defined via __class array key, allowing a remote attacker to execute arbitrary code without authentication. This vulnerability, confirmed as exploited in the wild between February and April 2025, also affects products implementing Yii such as Craft CMS.

Show the original NVD text

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 text, unmodified. NVD.

Exploitation confirmed by CISA

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.

Action required by CISA: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 2.0.52

Update Yii to version 2.0.52 or later. If you use Craft CMS or other Yii-based products, verify they are also updated.

Vendor advisory · www.yiiframework.com ↗

  1. Apply the vendor's security update for Yii.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 23, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist yiisoft/yii2 < 2.0.52 2.0.52 composer require "yiisoft/yii2:^2.0.52"

Per OSV / GitHub Advisories (GHSA-ggwg-cmwp-46r5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
yiiframeworkyii< 2.0.52

Official sources

References

Links published by the sources. Open them with care.