Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

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

High 8.1

In plain English

A high-severity security flaw in yiisoft/yii2 from yiisoft. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 80.1% (higher than 99.6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)8.1High
Exploit odds (30 days)80.1%top 0.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistyiisoft/yii22.0.49.4GHSA-cjcc-p67m-7qxm

Affected products (as reported)

VendorProductVersions
yiisoft yiisoft/yii2 unspecified – through latest

Weakness: CWE-470 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References