8.1High

CVE-2024-4990Unsafe Reflection in base Component class in yiisoft/yii2

yiisoft yiisoft/yii2 Published: (1 year ago)

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 (CWE): CWE-470

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
yiiframework yii 2.0.48
yiisoft yiisoft/yii2 unspecified – ≤ latest

References and patches

CPE matches (NVD) (1)

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