First published: Sun Jun 02 2024(Updated: )
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.
Credit: security@huntr.dev
Affected Software | Affected Version | How to fix |
---|---|---|
composer/yiisoft/yii2 | <2.0.49.4 | 2.0.49.4 |
Yii Framework | =2.0.48 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-4990 is considered a high-severity vulnerability due to its ability to allow arbitrary class instantiation.
To fix CVE-2024-4990, upgrade yiisoft/yii2 to version 2.0.49.4 or later.
Any application using yiisoft/yii2 version prior to 2.0.49.4 is affected by CVE-2024-4990.
The vulnerable component in CVE-2024-4990 is the base Component class within the yiisoft/yii2 framework.
CVE-2024-4990 allows attackers to instantiate arbitrary classes without proper validation due to an unvalidated magic method.