Skip to content
Emerging threatsCritical

CVE-2024-4990yiisoft/yii2 Vulnerability

Unsafe Reflection in base Component class in yiisoft/yii2

Published Jun 2, 2024 · Updated Oct 28, 2026 · Also known as GHSA-cjcc-p67m-7qxm

Key Facts

Patch immediately
  • CVE-2024-4990 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Yii (Yiiframework), yiisoft/yii2 (composer).
  • It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 80% probability of exploitation in the next 30 days.
  • Fixed versions are available, including yiisoft/yii2 2.0.49.4.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

9.1

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

EPSS (30-day exploit likelihood)

80%

Higher than 99.6% of all scored CVEs

Exploit maturity

None known

ATLAS score

37/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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 Products

3 affected entries in total
ProductAffected versionsFixed in
YiiYiiframework2.0.48n/a
yiisoft/yii2composer>= unspecified2.0.49.4

Patched Releases

yiisoft/yii2

2.0.49.4

Timeline

  1. Publicly disclosed

    Jun 2, 2024

  2. Last updated

    Oct 28, 2026

Weakness Type

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

References

6 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2024-4990 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.