{"id":"CVE-2024-56145","aliases":["CVE-2024-56145","GHSA-2p6p-9rc9-62j9"],"related":[],"kind":"vulnerability","state":"published","title":"RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nYou are affected if your php.ini configuration has `register_argc_argv` enabled.\n\n### Patches\nUpdate to 3.9.14, 4.13.2, or 5.5.2.\n\n### Workarounds\nIf you can't upgrade yet, and `register_argc_argv` is enabled, you can disable it to mitigate the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft es un CMS flexible y fácil de usar para crear experiencias digitales personalizadas en la web y más allá. Los usuarios de las versiones afectadas se ven afectados por esta vulnerabilidad si su configuración php.ini tiene `register_argc_argv` habilitado. Para estos usuarios existe un vector de ejecución de código remoto no especificado. Se recomienda a los usuarios que actualicen a la versión 4.13.2 o 5.5.2. Los usuarios que no puedan actualizar deben deshabilitar `register_argc_argv` para mitigar el problema.","source":"nvd"},{"lang":"en","text":"Craft CMS contains a code injection vulnerability. Users with affected versions are vulnerable to remote code execution if their php.ini configuration has `register_argc_argv` enabled.","source":"kev"}],"published":"2024-12-18T19:47:26.000Z","modified":"2026-06-17T08:11:45.717Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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/E:A","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":">= 4.0.0-RC1, < 4.13.2","status":"affected"},{"version":">= 5.0.0-RC1, < 5.5.2","status":"affected"},{"version":">= 3.0.0, < 3.9.14","status":"affected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.5.2"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.13.2"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.9.14"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"3.9.14"},{"status":"affected","introduced":"4.0.0","fixed":"4.13.2"},{"status":"affected","introduced":"5.0.0","fixed":"5.5.2"}],"vendor":"craftcms","product":"craft_cms","cpe":"cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"Craft CMS","product":"Craft CMS","source":"kev"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9","tags":["kev","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","kev"]},{"url":"https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Chocapikk/CVE-2024-56145","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","kev":{"dateAdded":"2025-06-02","dueDate":"2025-06-23","name":"Craft CMS Code Injection Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 ; https://nvd.nist.gov/vuln/detail/CVE-2024-56145"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"yes","technicalImpact":"total","date":"2025-06-06T03:55:30.076Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56145","url":"https://www.cve.org/CVERecord?id=CVE-2024-56145","licence":"CVE Terms of Use","modified":"2025-10-21T22:55:33.949Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2p6p-9rc9-62j9","url":"https://github.com/advisories/GHSA-2p6p-9rc9-62j9","licence":"CC-BY-4.0","modified":"2025-10-22T19:42:37.418Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56145","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145","licence":"Public domain","modified":"2026-06-17T08:11:45.717Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2024-56145","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-56145","licence":"CC0-1.0","modified":"2025-06-02T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:50.247Z","epss":{"score":0.69484,"percentile":0.99538,"date":"2026-11-30T12:00:22.000Z"}}