CVE-2024-4990yiisoft/yii2 Vulnerability
Unsafe Reflection in base Component class in yiisoft/yii2
Published Jun 2, 2024 · Updated Oct 28, 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. A public exploit is reported by tracking sources, but no code link is listed yet.
- 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.
Scores
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
Exploit maturity
None known
ATLAS score
37/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2024-4990
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yaml
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-4990
- advisoryGHSA advisory
- advisoryhttps://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2050-may-30-2024
- advisoryhttps://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e
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
Oct 28, 2026
Weakness Type
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code
References
- advisorycve.org · CVERecord
- advisorygithub.com · CVE-2024-4990
- advisorynvd.nist.gov · CVE-2024-4990
- advisoryGHSA advisory
- advisorygithub.com · CHANGELOG.md
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.
A public exploit is reported by tracking sources, but no code link is listed yet.
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 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo