Vulnerability details

CVE-2024-4990

yiisoft yiisoft/yii2

Unsafe Reflection in base Component class in yiisoft/yii2

CVSS 3.0
8.1High

Official description

In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic method does not validate that the value passed is a valid Behavior class name or configuration. This allows an attacker to instantiate arbitrary classes, passing parameters to their constructors and invoking setter methods. Depending on the installed dependencies, various types of attacks are possible, including the execution of arbitrary code, retrieval of sensitive information, and unauthorized access.

CVSS scores

ScoreVersionSourceVector
8.1High 3.0 CVEProject cvelistV5 (CNA) (@huntr_ai) CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersionsSource
yiisoft yiisoft/yii2 v ≤ latest CVEProject cvelistV5 (CNA)

References and advisories

1
Kolun on Telegram @kolunsec Exploited CVEs, key news and a daily digest Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2025-03-20
Last updated
2025-03-20
State
Published
Assigner (CNA)
@huntr_ai

Exploit prediction (EPSS)

80.09%
Probability of exploitation in 30 days
99.6%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
No
Exploitation
Proof of concept
Technical impact
Total

Weaknesses (CWE)

  • CWE-470
    Use of Externally-Controlled Input to Select Classes or Code