{"id":"CVE-2024-56145","summary":"RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms","details":"Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected versions are affected by this vulnerability if their php.ini configuration has `register_argc_argv` enabled. For these users an unspecified remote code execution vector is present. Users are advised to update to version 3.9.14, 4.13.2, or 5.5.2. Users unable to upgrade should disable `register_argc_argv` to mitigate the issue.","aliases":["GHSA-2p6p-9rc9-62j9"],"modified":"2026-04-10T05:18:40.739496Z","published":"2024-12-18T20:37:34.301Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56145.json","cwe_ids":["CWE-94"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56145.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145"},{"type":"FIX","url":"https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3"},{"type":"EVIDENCE","url":"https://github.com/Chocapikk/CVE-2024-56145"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"daac7c1da2f701f2e9ddee1da1457ce61660b581"},{"fixed":"b2515b0ce6ae02e8582ce5a10841cb933899cbe3"}],"database_specific":{"versions":[{"introduced":"4.0.0-RC1"},{"fixed":"4.13.2"}]}},{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"04755d93f86d07cc183db47db8a0eee106892e30"},{"fixed":"43dc9cfba1d5ccb1cd0b5da4ff1ab6459db26811"}],"database_specific":{"versions":[{"introduced":"5.0.0-RC1"},{"fixed":"5.5.2"}]}},{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"18263261a5a70f0f84d78db6c4449b6fe304224e"},{"fixed":"31c8d3e485c8f39ae438cee83805edb9a8123d3e"}],"database_specific":{"versions":[{"introduced":"3.0.0"},{"fixed":"3.9.14"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56145.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}