What’s Vulnerable › Vulnerabilities
CVE-2024-52293: Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-11-13 · updated 2026-06-17
- Weakness: CWE-22
Description
Craft is a content management system (CMS). Prior to 4.12.2 and 5.4.3, Craft is missing normalizePath in the function FileHelper::absolutePath could lead to Remote Code Execution on the server via twig SSTI. This is a sequel to CVE-2023-40035. This vulnerability is fixed in 4.12.2 and 5.4.3.
Affected products
- craftcms cms: from 4.0.0 (excl.) before 4.12.2; from 5.0.0 (excl.) before 5.4.3; 4.0.0-rc1, 4.0.0-rc2, 4.0.0-rc3, 5.0.0-rc1 — fixed in 4.12.2, 5.4.3
How to fix
Upgrade to a fixed version: craftcms cms 4.12.2, 5.4.3. Check the vendor advisory for mitigations.
References
- https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
Get alerted when CVE-2024-52293 or the next vulnerability affects your stack