CVE-2024-4990

published 20 Mar 2025 · updated 20 Mar 2025

Unsafe Reflection in base Component class in yiisoft/yii2

9.1CriticalCVSS 8.1EPSS 80%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 80%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
yiisoft<=latest

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-4990 severity on Zeptric[![CVE-2024-4990](https://zeptric.io/badge/cve/CVE-2024-4990.svg)](https://zeptric.io/cve/CVE-2024-4990)