CVE-2024-4990
Unsafe Reflection in base Component class
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según GHSA (alta).
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| composer::GitHub Security Advisory Composer | yiisoft/yii2 | 2.0.49.4 |
| composer::PHP Security Advisories Database | yiisoft/yii2 | sin corrección indicada |
Referencias
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yaml
- https://github.com/yiisoft/yii2
- https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2050-may-30-2024
- https://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e
- https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4
- https://github.com/yiisoft/yii2/pull/20183
- https://github.com/yiisoft/yii2/security/advisories/GHSA-cjcc-p67m-7qxm
- https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f