cve.bz

CVE-2024-4990 yiiframework yii: Reflection Injection

9.1 criticalExploit referenceEPSS 80%Fix available

Critical (9.1) in yiiframework yii. EPSS 80% estimated probability of exploitation activity in the next 30 days. Fixed in yiisoft/yii2 2.0.49.4.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
80% (unchanged from 80% a week ago; 80% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-03-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • yiisoft/yii2 (Packagist): fixed in 2.0.49.4

Ask an AI about this CVE

Show the promptExplain CVE-2024-4990 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-4990?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-4990?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-4990 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
yiisoft/yii2through latest

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cjcc-p67m-7qxmPackagistyiisoft/yii2<2.0.49.42.0.49.4

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON