CVE-2024-56145: Craft CMS - Remote Code Execution
- Cve: CVE-2024-56145
- Name: Craft CMS - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full server compromise.
- Remediation: Update to the latest version of Craft CMS that addresses this vulnerability.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.97482
- Epss percentile: 0.99901
- Assignee: [email protected]
- Published at: 2024-12-18T21:15:08Z
- Age in days: 705
- Modified at: 2026-06-17T08:11:45Z
- Patch available: yes
- Public exploits total: 7
- References total: 12
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-56145
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| cisa | 2025-06-02 | 2025-06-23 | no |
| vulncheck | 2025-05-27 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-56145 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56145.yaml |
Hackerone
- Reports: 1
- Rank: 5193
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Chocapikk/CVE-2024-56145 | nvd | 2024-12-18 |
| https://gitlab.com/Chocapikk/CVE-2024-56145.git | vulncheck-xdb | 2026-08-06 |
| https://github.com/hmhlol/craft-cms-RCE-CVE-2024-56145 | poc-in-github | 2025-04-06 |
| https://github.com/Sachinart/CVE-2024-56145-craftcms-rce | poc-in-github | 2024-12-22 |
| https://github.com/Sachinart/CVE-2024-56145-craftcms-rce.git | vulncheck-xdb | 2024-12-22 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | >= 5.0.0, < 5.5.2; >= 4.0.0, < 4.13.2; >= 3.0.0, < 3.9.14 | no | nvd | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | commit, fix, package, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited: yes
- Known exploited since: 2025-06-02
- Known exploited by: cisa, vulncheck
- Vulncheck known exploited since: 2025-05-27
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 7
- Public exploit first date: 2024-12-18
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 34307
- Checked, none or zero: initial access, authentication required
- Not known: initial access since