CVE-2024-4990 Details
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.
A vulnerability exists in the Yii Framework version 2.0.48 within the base Component class. The issue arises because the `__set()` magic method fails to validate whether the value provided is a legitimate Behavior class name or configuration. This oversight enables an attacker to instantiate arbitrary classes, manipulate constructor parameters, and invoke setter methods. Exploitation possibilities vary based on the application's dependencies, potentially leading to arbitrary code execution, unauthorized access, or exposure of sensitive information.
Users can upgrade to Yii Framework version 2.0.50, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f | CISA-ADP | Exploit |
| https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f | [email protected] | Exploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-470 | Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yiiframework yii | 2.0.48 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 1, 2025 | Initial Analysis | [email protected] |
| Mar 20, 2025 | CVE Modified | CISA-ADP |
| Mar 20, 2025 | New CVE Received | [email protected] |