VULNERABILITY INTELLIGENCE
CVE-2024-4990
CVSS score9.1 CRITICAL
EPSS probability80.10%
CISA KEVNot currently listed
Published2025-03-20
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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.
Weakness classification
- CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Primary references
- security@huntr.dev — Exploit
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 — Exploit