{"schemaVersion":3,"id":"CVE-2024-56145","aliases":[],"status":"published","duplicateOf":null,"title":"Craft CMS Code Injection Vulnerability","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.","dates":{"published":"2024-12-18T20:37:34.301Z","modified":"2025-10-21T22:55:33.949Z","reserved":null,"kevAdded":["2025-06-02T00:00:00.000Z"],"kevDue":["2025-06-23T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.97405,"percentile":0.999,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.041000000000002146,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.97446},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.97405,"percentile":0.999}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.97446,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.97405,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.97405,"percentile":0.999}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-06-02T00:00:00.000Z","dueDate":"2025-06-23T00:00:00.000Z","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.","name":"Craft CMS Code Injection Vulnerability","description":"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.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9","label":"github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145","label":"nvd.nist.gov/vuln/detail/CVE-2024-56145"}],"vendor":"Craft CMS","product":"Craft CMS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-06-02T00:00:00.000Z","dueDate":"2025-06-23T00:00:00.000Z","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.","name":"Craft CMS Code Injection Vulnerability","description":"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.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9","label":"github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-56145","label":"nvd.nist.gov/vuln/detail/CVE-2024-56145"}],"vendor":"Craft CMS","product":"Craft CMS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_CHOCAPIKK_CVE-2024-56145","name":"Cve 2024 56145","source":"github","url":"https://github.com/Chocapikk/CVE-2024-56145","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_LINUX_HTTP_CRAFTCMS_FTP_TEMPLATE","name":"Craft CMS Twig Template Injection RCE via FTP Templates Path","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/http/craftcms_ftp_template.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/http/craftcms_ftp_template","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk","ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":2,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"craftcms","product":"cms","name":"cms","label":"cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0-RC1, < 4.13.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0-RC1, < 5.5.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.9.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0-RC1, < 4.13.2 | ≥ 5.0.0-RC1, < 5.5.2 | ≥ 3.0.0, < 3.9.14","eol":null,"hubHref":"/vendor/craftcms/cms"},{"vendor":"craftcms","product":"craft_cms","name":"craft cms","label":"craft_cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.9.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.13.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.9.14 | ≥ 4.0.0, < 4.13.2 | ≥ 5.0.0, < 5.5.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"craft-cms","label":"Craft CMS","category":"server-app"}},"hubHref":"/vendor/craftcms/craft_cms"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9","label":"github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3","label":"github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/Chocapikk/CVE-2024-56145","label":"github.com/Chocapikk/CVE-2024-56145","hostname":"github.com","tags":["Exploit"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-12-18T20:37:34.301Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2025-06-02T00:00:00.000Z","label":"Added to CISA KEV","detail":"Craft CMS Code Injection Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2025-06-23T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T22:55:33.949Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:23:28.599Z","stale":false,"partial":false}}