CVE-2024-56145: Craft CMS Code Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by GitHub_M, published 2024-12-18).
Weakness: CWE-94: Improper Control of Generation of Code (‘Code Injection’)
How it can be exploited
Exploitable over the network with low attack complexity with no special attack requirements needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. 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
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: total.
- On CISA KEV since
- 2025-06-02
- US federal deadline
- 2025-06-23
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2025-00007, CNVD-2024-49205, EUVD-2024-3545, GHSA-2p6p-9rc9-62j9, SNYK-PHP-CRAFTCMSCMS-8536498
VEDAS cluster: VEDAS:BLACKSPECTRE
Exploit Observer links 8 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (8)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2024/CVE-2024-56145.yaml
- Code repository: https://github.com/hmhlol/craft-cms-rce-cve-2024-56145
- Code repository: https://github.com/rawtips/craft_cve_2024_56145_exploit.py
- Code repository: https://github.com/sachinart/cve-2024-56145-craftcms-rce
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2024/CVE-2024-56145.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2024/CVE-2024-56145.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2024/CVE-2024-56145.rules
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2024/CVE-2024-56145.rules
Vulnerability databases and vendor advisories (11)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2024-3545
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-2p6p-9rc9-62j9
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-56145
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2024-56145
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-2p6p-9rc9-62j9
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-2p6p-9rc9-62j9
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-PHP-CRAFTCMSCMS-8536498
- Vulnerability database or vendor advisory: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145
- Vulnerability database or vendor advisory: https://www.cnvd.org.cn/flaw/show/CNVD-2024-49205
- Vulnerability database or vendor advisory: https://www.vicarius.io/vsociety/posts/cve-2024-56145-craftcms-rce-detection
- Vulnerability database or vendor advisory: https://www.vicarius.io/vsociety/posts/cve-2024-56145-mitigate-craftcms-rces
69 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.975
very likely to be attacked soon - VEDAS
- 0.981
strong exploit evidence - On CISA KEV
- Yes, since 2025-06-02
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| craftcms cms | version >= 4.0.0-RC1, < 4.13.2 version >= 5.0.0-RC1, < 5.5.2 version >= 3.0.0, < 3.9.14 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: craftcms craft_cms.
How to fix it
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
- https://nvd.nist.gov/vuln/detail/CVE-2024-56145
How to detect it
Nuclei template (active check)
Craftcms - Code Injection
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.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET ?--configPath=/ztxeqv_test/{{nonce}}); it decides using status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2024-56145.yamlShow the template (44 lines)
id: CVE-2024-56145
info:
name: "Craftcms - Code Injection"
author: vedas-arpsyndicate
severity: critical
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2024-56145&match=exact
- https://subdomain.center/?engine=ammonites&keyword=craftcms&match=exact
classification:
cvss-metrics: 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
cvss-score: 9.3
cve-id: CVE-2024-56145
cwe-id: CWE-94
metadata:
verified: false
tags: cve,cve2024,rce,craftcms,ssti,kev,vkev,vuln
variables:
nonce: "{{rand_int(1000000000,9999999999)}}"
http:
- raw:
- |
GET ?--configPath=/ztxeqv_test/{{nonce}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{nonce}}'
- 'mkdir()'
- 'Permission denied'
- 'No such file or directory'
condition: and
- type: status
status:
- 503
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2024-56145 Craftcms - Code Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2024-56145 Craftcms - Code Injection"; flow:established,to_server; http.uri; content:"--configPath="; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2024-56145; reference:url,https://www.exploit.observer/?keyword=CVE-2024-56145&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=craftcms&match=exact; sid:1011458; rev:1;)
CVE-2024-56145.rules on GitHub
References
Exploits and technical analysis
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145 (government-resource)
Other references
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 (x_refsource_CONFIRM)
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3 (x_refsource_MISC)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.