CVE-2024-4990 HIGH

CVE-2024-4990: Unsafe Reflection in base Component class in yiisoft/yii2

Vendor Yiisoft
Product yiisoft/yii2
Weakness CWE-470
Published March 20, 2025
Last update March 20, 2025

CVSS base score

8.1/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 20, 2025 CVE published
March 20, 2025 Record updated