# CVE-2024-52293: Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-13T14:16:38.000Z
- Modified: 2026-06-17T08:06:57.343Z
- Also known as: GHSA-f3cw-hg6r-chfv
- Related: CVE-2025-46731
- Weaknesses: CWE-22, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0-RC1, < 4.12.2; >= 5.0.0-RC1, < 5.4.3
- craftcms craft_cms: up to 4.0.0-RC1; before 4.12.2; up to 5.0.0-RC1; before 5.4.3; from >4.0.0 before 4.12.2; from >5.0.0 before 5.4.3; 4.0.0; 5.0.0
- craftcms/cms (Packagist): from 4.0.0-RC1 before 4.12.2; from 5.0.0-RC1 before 5.4.3

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv> (exploit, vendor-advisory, web)
- <https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52293> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2024-52293](https://www.cve.org/CVERecord?id=CVE-2024-52293), CVE Terms of Use, modified 2024-11-13
- GitHub Advisory Database: [GHSA-f3cw-hg6r-chfv](https://github.com/advisories/GHSA-f3cw-hg6r-chfv), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-52293](https://nvd.nist.gov/vuln/detail/CVE-2024-52293), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52293 · Whole record: https://cve.day/CVE-2024-52293.json · Rebuilt by cve.day 2026-11-25T22:58:48.198Z
