{"id":"CVE-2024-56145","kind":"vulnerability","aliases":["CVE-2024-56145"],"related":[],"title":"craftcms craft cms: Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond","description":"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.","summary":"Craft CMS contains a code injection flaw that lets a remote request run code on the server when PHP has register_argc_argv enabled. CISA lists it as actively exploited in the wild.","severity":"critical","cvss":9.8,"epss":null,"exploited":true,"exploited_at":"2025-06-02T00:00:00+00:00","products":[{"name":"Craft CMS Craft CMS","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"craftcms craft cms","fixed":["3.9.14"],"affected":">= 3.0.0, < 3.9.14","ecosystem":"vendor"},{"name":"craftcms craft cms","fixed":["4.13.2"],"affected":">= 4.0.0, < 4.13.2","ecosystem":"vendor"},{"name":"craftcms craft cms","fixed":["5.5.2"],"affected":">= 5.0.0, < 5.5.2","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["craft-cms","exploited","package","php","self-hosted"],"not_affected_if":["managed-hosting","register_argc_argv-off"],"how_to_check":"Check php.ini for register_argc_argv (on means exposed); run php -i | grep register_argc_argv to see the effective value.","fix":"Upgrade Craft CMS to a patched release per the vendor advisory, or set register_argc_argv = Off in php.ini as a mitigation.","status":"open","published_at":"2024-12-18T21:15:08+00:00","first_seen_at":"2026-10-23T19:11:51+00:00","triaged_at":"2026-10-23T20:48:27+00:00","updated_at":"2026-10-23T22:29:05+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-23T20:48:27Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Craft CMS to a patched release per the vendor advisory, or set register_argc_argv = Off in php.ini as a mitigation.\nunknown","reach":"internet","summary":"Craft CMS contains a code injection flaw that lets a remote request run code on the server when PHP has register_argc_argv enabled. CISA lists it as actively exploited in the wild.","category":"package","who_cares":["craft-cms","php","self-hosted"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Remote attacker runs arbitrary code on the web server hosting Craft CMS","analyst_note":"Fixed and affected version ranges are not in the sources; check the Craft CMS security advisory for CVE-2024-56145 to fill the fix and how_to_check fields.","how_to_check":"Check php.ini for register_argc_argv (on means exposed); run php -i | grep register_argc_argv to see the effective value.\nunknown","needs_analyst":true,"not_affected_if":["register_argc_argv-off","managed-hosting"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000457,"input_tokens":2540,"output_tokens":406,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2024':23A,26A '-56145':24A,27A '3.9.14':137C '4.13.2':138C '5.5.2':140C 'activ':78B 'advis':132C 'affect':103C,106C 'argc':71B,116C,148C 'argv':72B,117C,149C 'beyond':21A,100C 'cisa':74B 'cms':3A,11A,29A,31A,34A,37A,40A,43B,51B,90C 'code':54B,63B,125C 'configur':113C 'contain':52B 'craft':2A,4A,28A,30A,33A,36A,39A,42B,50B,83C 'craft-cm':41B 'craftcm':1A 'craftcms':32A,35A,38A 'creat':13A,92C 'custom':14A,93C 'cve':22A,25A 'digit':15A,94C 'disabl':146C 'enabl':73B,118C 'execut':126C 'experi':16A,95C 'exploit':44B,79B 'flaw':56B 'flexibl':7A,86C 'friend':10A,89C 'host':49B 'inject':55B 'issu':153C 'let':58B 'list':75B 'mitig':151C 'packag':45B 'php':46B,68B 'php.ini':112C 'present':129C 'regist':70B,115C,147C 'remot':60B,124C 'request':61B 'run':62B 'self':48B 'self-host':47B 'server':66B 'unabl':142C 'unspecifi':123C 'updat':134C 'upgrad':144C 'user':9A,88C,101C,121C,130C,141C 'user-friend':8A,87C 'vector':127C 'version':104C,136C 'vulner':109C 'web':19A,98C 'wild':82B","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2024-12-18T21:15:08+00:00","kev":{"dateAdded":"2025-06-02","dueDate":"2025-06-23","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.","knownRansomwareCampaignUse":"Unknown"},"cvss_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:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2024-56145","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-56145","severity":null,"published_at":"2025-06-02T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:51+00:00","fetched_at":"2026-10-25T10:39:05+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-56145","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145","severity":null,"published_at":"2024-12-18T21:15:08+00:00","modified_at":"2026-06-17T08:11:45+00:00","first_seen_at":"2026-10-23T22:29:05+00:00","fetched_at":"2026-10-23T22:29:05+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}