Skip to content
Vulnerability Intelligence

CVE-2024-4990

CriticalPublic exploit

Unsafe Reflection in base Component class in yiisoft/yii2

Published Jun 2, 2024 · Updated Aug 12, 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. Public exploit code is available.
  • 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.

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

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2024-4990 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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

    Aug 12, 2026

Weakness Type

  • CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

References

6 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2024-4990 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo