What’s Vulnerable › Vulnerabilities
CVE-2024-4990: Unsafe Reflection in base Component class in yiisoft/yii2
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 80.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-03-20 · updated 2026-06-17
- Weakness: CWE-470
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.
Affected products
- yiisoft yii: 2.0.48
References
- https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f
- https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f
Get alerted when CVE-2024-4990 or the next vulnerability affects your stack