CVE-2024-4990: In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic me
CVE-2024-4990 is a critical-severity flaw (CVSS 9.1) affecting yii. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 c
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.1 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 80.1% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-470 |
| Published | 2025-03-20 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-4990?
yii: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-4990 being exploited?
CVE-2024-4990 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-4990 affect?
CVE-2024-4990 affects yii. Severity is critical (CVSS 9.1). 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 instantia
How urgent is CVE-2024-4990?
Priority 67/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2025-32027 MEDIUM 6.1 UPGRADE Yii is an open source PHP web framework
- CVE-2025-2690 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, was found in yiisoft Yii2 up to 2.0.39
- CVE-2025-2689 MEDIUM 6.3 UPGRADE A vulnerability, which was classified as critical, has been found in yiisoft Yii2 up to 2.0.45
- CVE-2024-58136 CRITICAL 9.0 EXPLOITED UPGRADE Yiiframework Yii Improper Protection of Alternate Path Vulnerability
- CVE-2024-32877 MEDIUM 4.2 DOWNGRADE Yii 2 is a PHP application framework