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.
Metrics
Affected Vendors & Products
References
History
Tue, 01 Apr 2025 21:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Yiiframework
Yiiframework yii |
|
CPEs | cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:* | |
Vendors & Products |
Yiiframework
Yiiframework yii |
|
Metrics |
cvssV3_1
|
Thu, 20 Mar 2025 14:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Thu, 20 Mar 2025 10:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | Unsafe Reflection in base Component class in yiisoft/yii2 | |
Weaknesses | CWE-470 | |
References |
| |
Metrics |
cvssV3_0
|

Status: PUBLISHED
Assigner: @huntr_ai
Published: 2025-03-20T10:11:14.988Z
Updated: 2025-03-20T13:31:05.950Z
Reserved: 2024-05-16T09:00:39.505Z
Link: CVE-2024-4990

Updated: 2025-03-20T13:30:57.367Z

Status : Analyzed
Published: 2025-03-20T10:15:32.603
Modified: 2025-04-01T20:34:07.170
Link: CVE-2024-4990

No data.