{"id":"CVE-2024-4990","published":"2025-03-20T10:11:14Z","modified":"2025-03-20T13:31:05Z","title":"Unsafe Reflection in base Component class in yiisoft/yii2","vendor":"yiisoft","product":"yiisoft/yii2","tier":"core","eol":null,"affectedVersions":[{"vendor":"yiisoft","product":"yiisoft/yii2","versions":[">= unspecified, <= latest"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":8.1,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.80097,"percentile":0.99615,"date":"2026-10-29","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"yiisoft/yii2","vulnerableRanges":["<2.0.49.4"],"patched":["2.0.49.4"],"from":["GHSA-cjcc-p67m-7qxm"],"provenance":"source"}],"advisories":[{"id":"GHSA-cjcc-p67m-7qxm","url":"https://github.com/advisories/GHSA-cjcc-p67m-7qxm","severity":"HIGH","ecosystem":"Packagist","package":"yiisoft/yii2","vulnerableRanges":["<2.0.49.4"],"patched":["2.0.49.4"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-2024","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2024","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-03-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-4990","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":25.6,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9961"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.67,"detail":"base score 8.1"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-yiisoft-yii2-cve-2024-32877","children":[{"from":"CVE-2024-4990","to":"CVE-2024-58136","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990 regression, as exploited in the wild in February through April 2025.","from":"NVD","in":"CVE-2024-58136"},{"kind":"version-step","provenance":"source","package":"Packagist:yiisoft/yii2","fromFixed":"2.0.49.4","toFixed":"2.0.52","daysApart":21},{"kind":"same-code","provenance":"machine","files":["framework/base/Component.php"],"commits":["https://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e","https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4","https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12"],"basis":"shared function","functions":["__set"]}]}],"packageHistory":[{"cve":"CVE-2018-20745","published":"2019-01-28","fixed":"2.0.16","kev":false},{"cve":"CVE-2020-15148","published":"2020-09-15","fixed":"2.0.38","kev":false},{"cve":"CVE-2024-32877","published":"2024-05-30","fixed":"2.0.49.4","kev":false},{"cve":"CVE-2024-4990","published":"2025-03-20","fixed":"2.0.49.4","kev":false},{"cve":"CVE-2024-58136","published":"2025-04-10","fixed":"2.0.52","kev":true},{"cve":"CVE-2026-39850","published":"2026-05-20","fixed":"2.0.55","kev":false}],"package":"Packagist:yiisoft/yii2"}}