Yii Framework arbitrary code execution via behavior attachment
CVE-2024-58136Known exploitedCritical
Yii Framework versions before 2.0.52 do not properly validate behavior definitions when using the __class array key, allowing remote attackers to execute arbitrary code. An attacker needs to send a specially crafted request to an application using the vulnerable Yii Framework version. This vulnerability affects applications built with Yii and products that depend on it, such as Craft CMS.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 2 May 2025
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Detail
Yiiframework Yii. CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Weakness: CWE-424 (opens in a new tab)
Affected versions
- yiiframework yii: before 2.0.52