CVE-2024-4990

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*

History

01 Apr 2025, 20:34

Type Values Removed Values Added
Summary
  • (es) En la versión 2.0.48 de yiisoft/yii2, la clase base Component contiene una vulnerabilidad donde el método mágico `__set()` no valida que el valor pasado sea un nombre o configuración de clase de comportamiento válido. Esto permite a un atacante instanciar clases arbitrarias, pasando parámetros a sus constructores e invocando métodos setter. Dependiendo de las dependencias instaladas, son posibles varios tipos de ataques, incluyendo la ejecución de código arbitrario, la recuperación de información confidencial y el acceso no autorizado.
References () https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f - () https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f - Exploit
CVSS v2 : unknown
v3 : 8.1
v2 : unknown
v3 : 9.1
First Time Yiiframework yii
Yiiframework
CPE cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*

20 Mar 2025, 14:15

Type Values Removed Values Added
References () https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f - () https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f -

20 Mar 2025, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-20 10:15

Updated : 2025-04-01 20:34


NVD link : CVE-2024-4990

Mitre link : CVE-2024-4990

CVE.ORG link : CVE-2024-4990


JSON object : View

Products Affected

yiiframework

  • yii
CWE
CWE-470

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')