CVE-2024-4990

Unsafe Reflection in base Component class in yiisoft/yii2

State
Published
Severity
8.1 High
Published
Mar 20, 2025
Updated
Mar 20, 2025
Reserved
May 16, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.08.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H@huntr_ai

Weaknesses

  • CWE-470 Use of Externally-Controlled Input to Select Classes or Code

Affected Products

ProductVersions
yiisoft/yii2yiisoft
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.