CVE-2024-4990
CRITICAL 9.1CVSS 3.1Unsafe Reflection in base Component class in yiisoft/yii2
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.
- Published
- 20 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-470
- Also known as
- GHSA-cjcc-p67m-7qxm
- Sources
- NVDJSONOSV GHSA-cjcc-p67m-7qxmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yiiframework | yiicpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:* |
= 2.0.48 | |
| OSV | Packagist | yiisoft/yii2 | < 2.0.49.4 | 2.0.49.4 |
References
- https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f · Exploit, WEB
- https://github.com/yiisoft/yii2/security/advisories/GHSA-cjcc-p67m-7qxm · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-4990 · ADVISORY
- https://github.com/yiisoft/yii2/pull/20183 · WEB
- https://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e · WEB
- https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yaml · WEB
- https://github.com/yiisoft/yii2 · PACKAGE
- https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2050-may-30-2024 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Jun 2024)