RCE in Craftcms Cms
CVE-2024-56145
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.975, 99.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Craftcms Cms — versions >= 4.0.0-RC1, < 4.13.2, >= 5.0.0-RC1, < 5.5.2, >= 3.0.0, < 3.9.14
- Craftcms Craft Cms
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
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.
Browse the full CISA KEV catalog with PoC counts, Metasploit modules and EPSS.
Public exploits and proof-of-concept code
Metasploit modules
4 public repositories with exploit or proof-of-concept code for this CVE:
- Chocapikk/CVE-2024-56145 (48 stars, last pushed 2024-12-23): Unauthenticated RCE on CraftCMS when PHP `register_argc_argv` config setting is enabled
- Sachinart/CVE-2024-56145-craftcms-rce (4 stars, last pushed 2024-12-22): CVE-2024-56145 SSTI to RCE - twig templates
- hmhlol/craft-cms-RCE-CVE-2024-56145 (last pushed 2025-04-06): A POC lab environment for CVE-2024-56145 CraftCMS RCE.
- rawtips/craft_cve_2024_56145_exploit.py
Also mentioned in 13 other repositories (20142995/nuclei-templates, craftcms/security-patches, cyb3r-w0lf/nuclei-template-collection, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 (Vendor Advisory)
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3 (Patch)
- github.com/Chocapikk/CVE-2024-56145 (Exploit)
- www.cisa.gov/known-exploited-vulnerabilities-catalog (US Government Resource)
This CVE has public exploit evidence. See the latest CVEs with public exploits.