Critical severity9.1NVD Advisory· Published Mar 20, 2025· Updated Jun 17, 2026
CVE-2024-4990
CVE-2024-4990
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
yiisoft/yii2Packagist | < 2.0.49.4 | 2.0.49.4 |
Affected products
3- cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*
- Range: unspecified
Patches
Vulnerability mechanics
References
9- huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8fnvdExploitWEB
- github.com/advisories/GHSA-cjcc-p67m-7qxmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-4990ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yamlghsaWEB
- github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.mdghsaWEB
- github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021eghsaWEB
- github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4ghsaWEB
- github.com/yiisoft/yii2/pull/20183ghsaWEB
- github.com/yiisoft/yii2/security/advisories/GHSA-cjcc-p67m-7qxmghsaWEB
News mentions
0No linked articles in our index yet.