CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

8.1 CVSS

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.

Classification

CVE ID: CVE-2024-4990

CVSS Base Severity: HIGH

CVSS Base Score: 8.1

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

Problem Types

CWE-470 Use of Externally-Controlled Input to Select Classes or Code

Affected Products

Vendor: yiisoft

Product: yiisoft/yii2

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.03% (probability of being exploited)

EPSS Percentile: 7.23% (scored less or equal to compared to others)

EPSS Date: 2025-04-18 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2024-4990
https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f

Timeline