SecurityContext

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

IdName
CWE-94Improper Control of Generation of Code

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2025-06-022025-06-23no
vulncheck2025-05-27—no

Nuclei templates

IdUrl
CVE-2024-56145https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56145.yaml

Hackerone

  • Reports: 1
  • Rank: 5193

Public exploits

UrlSourceAdded date
https://github.com/Chocapikk/CVE-2024-56145nvd2024-12-18
https://gitlab.com/Chocapikk/CVE-2024-56145.gitvulncheck-xdb2026-08-06
https://github.com/hmhlol/craft-cms-RCE-CVE-2024-56145poc-in-github2025-04-06
https://github.com/Sachinart/CVE-2024-56145-craftcms-rcepoc-in-github2024-12-22
https://github.com/Sachinart/CVE-2024-56145-craftcms-rce.gitvulncheck-xdb2024-12-22

References

UrlSourceTags
https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3nvdPatch
https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9nvdVendor Advisory
https://github.com/Chocapikk/CVE-2024-56145nvdExploit
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145nvdUS Government Resource
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56145.yamlnuclei_templateNuclei Template
https://wwv.vulncheck.com/2026-vulncheck-exploit-intelligence-reportvulncheckVulncheck Reported Exploitation
https://www.loginsoft.com/reports/annually/vulnerability-intelligence-report-2025vulncheckVulncheck Reported Exploitation
https://cyble.com/resources/research-reports/global-cybersecurity-report/vulncheckVulncheck Reported Exploitation
https://assets.recordedfuture.com/insikt-report-pdfs/2025/cta-2025-0828.pdfvulncheckVulncheck Reported Exploitation
https://www.recordedfuture.com/research/h1-2025-malware-and-vulnerability-trendsvulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
craftcms:craft_cms>= 5.0.0, < 5.5.2; >= 4.0.0, < 4.13.2; >= 3.0.0, < 3.9.14nonvd/v1/products/craftcms/craft_cms

Projects

RepositoryLink kindsIndexedUrl
craftcms/cmscommit, fix, package, security_advisoryyes/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

Nuclei template