CVE-2024-4990
CriticalPublic exploitUnsafe Reflection in base Component class in yiisoft/yii2
Published Jun 2, 2024 · Updated Aug 12, 2026 · Also known as GHSA-cjcc-p67m-7qxm
Key Facts
Patch immediately- CVE-2024-4990 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Yii (Yiiframework), yiisoft/yii2 (composer).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 80% probability of exploitation in the next 30 days.
- Fixed versions are available, including yiisoft/yii2 2.0.49.4.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS (30-day exploit likelihood)
80%
Higher than 99.6% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2024-4990 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| YiiYiiframework | 2.0.48 | n/a |
| yiisoft/yii2composer | >= unspecified | 2.0.49.4 |
Patched Releases
yiisoft/yii2
2.0.49.4
Timeline
Publicly disclosed
Jun 2, 2024
Last updated
Aug 12, 2026
Weakness Type
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4990.json
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yaml
- advisoryhttps://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2050-may-30-2024
- advisoryhttps://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e
FAQ
Common Questions.
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.
Affected: Yii (Yiiframework) versions 2.0.48; yiisoft/yii2 (composer) versions >= unspecified. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including yiisoft/yii2 2.0.49.4.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2024-4990 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo