Vulnerabilities

CVE-2024-4990

Critical 9.1 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-20
Last modified
2026-06-17
Assigned by
security@huntr.dev
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
79.5 % among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Yiiframework Yii 2.0.48 Affected
yiisoft yii2 (Packagist) < 2.0.49.4 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities