CVE-2024-4990
CVE-2024-4990 is a critical-severity vulnerability in Yiiframework Yii with a CVSS 3.x base score of 9.1. Its EPSS exploit-prediction score of 79% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-470.
Key facts
- Severity: Critical (CVSS 3.x base score 9.1)
- EPSS exploit prediction: 79% (100th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-2024
- Weakness: CWE-470
- Affected product: Yiiframework Yii
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-4990?
- 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.
- How severe is CVE-2024-4990?
- CVE-2024-4990 has a CVSS 3.x base score of 9.1, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability high.
- Is CVE-2024-4990 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 79% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-4990?
- CVE-2024-4990 affects Yiiframework Yii. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-4990?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2024-4990 have an EU (EUVD) identifier?
- Yes. CVE-2024-4990 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2024.
- When was CVE-2024-4990 published?
- CVE-2024-4990 was published on 2025-03-20 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*
More vulnerabilities in Yiiframework Yii
- CVE-2015-5467 — Critical (CVSS 9.8): web\ViewAction in Yii (aka Yii2) 2.x before 2.0.5 allows attackers to execute any local .php file via a relative path…
- CVE-2023-26750 — Critical (CVSS 9.8): SQL injection vulnerability found in Yii Framework Yii 2 Framework before v.2.0.47 allows the a remote attacker to…
- CVE-2018-8073 — Critical (CVSS 9.8): Yii 2.x before 2.0.15 allows remote attackers to execute arbitrary LUA code via a variant of the CVE-2018-7269 attack…
- CVE-2018-7269 — Critical (CVSS 9.8): The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to…
- CVE-2024-58136 — Critical (CVSS 9.0): Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990…
- CVE-2020-15148 — High (CVSS 8.9): Yii 2 (yiisoft/yii2) before version 2.0.38 is vulnerable to remote code execution if the application calls…
All CVEs affecting Yiiframework Yii →
Other CWE-470 (Unsafe Reflection) vulnerabilities
- CVE-2026-42027 — Critical (CVSS 9.8): Arbitrary Class Instantiation via Model Manifest in Apache OpenNLP ExtensionLoader Versions Affected: before…
- CVE-2025-34393 — Critical (CVSS 9.8): Barracuda Service Center, as implemented in the RMM solution, in versions prior to 2025.1.1, does not correctly verify…
- CVE-2025-53693 — Critical (CVSS 9.8): Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Sitecore Sitecore…
- CVE-2023-6943 — Critical (CVSS 9.8): Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Mitsubishi Electric…
- CVE-2021-31522 — Critical (CVSS 9.8): Kylin can receive user input and load any class through Class.forName(...). This issue affects Apache Kylin 2 version…
- CVE-2019-1003041 — Critical (CVSS 9.8): A sandbox bypass vulnerability in Jenkins Pipeline: Groovy Plugin 2.64 and earlier allows attackers to invoke arbitrary…