CVE-2024-4990

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability100. percentile80.1%
ProductYiisoft/yii2
PublishedMar 20, 2025
First seenMar 20, 2025
Weakness typeCWE-470CWE-470

How to fix

Update
  • yiisoft/yii22.0.49.4 or later

Affected products

ProductAffected versionsFixed in
yiisoft/yii2Packagistv < 2.0.49.42.0.49.4
yiiframework yii2.0.48—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.