{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-4990","id":"CVE-2024-4990","title":"Unsafe Reflection in base Component class in yiisoft/yii2","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 ar","descriptionLong":"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.","published":"2025-03-20T10:11:14.988Z","updated":"2026-10-28T02:30:58.118242920Z","reserved":"2024-05-16T09:00:39.505Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"@huntr_ai"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"huntr.dev"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"critical","products":["yiisoft/yii2"],"affectedProducts":[{"vendor":"yiisoft","product":"yiisoft/yii2","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"yiisoft/yii2","purl":"pkg:composer/yiisoft/yii2","ranges":["<2.0.49.4"],"fixed":["2.0.49.4"],"advisory":"GHSA-cjcc-p67m-7qxm"}],"cwes":["CWE-470"],"aliases":["GHSA-cjcc-p67m-7qxm"],"references":[{"url":"https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f","tags":["exploit","Exploit","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4990.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4990","tags":["advisory"]},{"url":"https://github.com/yiisoft/yii2/security/advisories/GHSA-cjcc-p67m-7qxm","tags":["web"]},{"url":"https://github.com/yiisoft/yii2/pull/20183","tags":["web"]},{"url":"https://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e","tags":["web"]},{"url":"https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2024-4990.yaml","tags":["web"]},{"url":"https://github.com/yiisoft/yii2","tags":["package"]},{"url":"https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2050-may-30-2024","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.80097,"epssPercentile":0.99623,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-4990","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4990","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-4990","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cjcc-p67m-7qxm","ok":true,"note":"GHSA-cjcc-p67m-7qxm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-4990","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 80% with CVSS 9.1"],"attention":null}