# CVE-2024-52291: Craft has a Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/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.25%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-13T14:12:36.000Z
- Modified: 2026-06-17T08:06:57.110Z
- Also known as: GHSA-jrh5-vhr9-qh7q
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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-jrh5-vhr9-qh7q> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52291> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

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

---

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