patchminder
Proof of concept · CISA assessment CVE-2024-52291

Remote code executionin Craft CMS cms.

Published 13 Nov 2024 · Updated 13 Nov 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 8.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 4.12.5, 5.4.6
In plain words

Craft is a content management system (CMS). A vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double file:// scheme (e.g., file://file:////). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads. Note that this will only work if you have an authenticated administrator account with allowAdminChanges enabled. This is fixed in 5.4.6 and 4.12.5.

What to do now
  • Upgrade cms to 4.12.5, 5.4.6 or later, whichever matches your release line.
  • Upgrade craftcms/cms (Packagist) to 4.12.5, 5.4.6 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
cms
5.0.0-RC1 to before 5.4.6
5.4.6
CVE record
cms
4.0.0-RC1 to before 4.12.5
4.12.5
CVE record
craftcms/cms (Packagist)
5.0.0-RC1 to before 5.4.6
5.4.6
GitHub advisory
craftcms/cms (Packagist)
4.0.0-RC1 to before 4.12.5
4.12.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Nov 2024
    CVE ID reserved by GitHub_M.
  2. 13 Nov 2024
    Published in the CVE List.
  3. 13 Nov 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other cms vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-52291: Remote code execution in Craft CMS cms. https://patchminder.com/cve/cve-2024-52291/ (accessed 5 December 2026).