CVE-2024-4990

Unsafe Reflection in base Component class in yiisoft/yii2

Published Mar 20, 2025 CVSS 3.1 · 9.1 Critical EPSS 80.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2024 Unsafe Reflection in base Component class in yiisoft/yii2
Github GHSA Github GHSA GHSA-cjcc-p67m-7qxm Unsafe Reflection in base Component class in yiisoft/yii2
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00077}

epss

{'score': 0.0008}

Type Values Removed Values Added
Metrics epss

{'score': 0.00047}

epss

{'score': 0.00077}

Type Values Removed Values Added
Metrics epss

{'score': 0.00035}

epss

{'score': 0.00047}

Type Values Removed Values Added
First Time appeared Yiiframework
Yiiframework yii
CPEs cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*
Vendors & Products Yiiframework
Yiiframework yii
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Unsafe Reflection in base Component class in yiisoft/yii2
Weaknesses CWE-470
References
Metrics cvssV3_0

{'score': 8.1, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Mar 20, 2025, 1:31 PM
Reserved
May 16, 2024, 9:00 AM
Status
Analyzed
Published
Mar 20, 2025, 10:15 AM
Modified
Jun 17, 2026, 8:03 AM