# CVE-2024-52292: Craft Allows Attackers to Read Arbitrary System Files

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- 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): 0.75%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-13T14:15:39.000Z
- Modified: 2026-09-10T03:50:20.581Z
- Also known as: GHSA-cw6g-qmjq-6w2w
- Weaknesses: CWE-22, CWE-552
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Craft is a content management system (CMS). The dataUrl function can be exploited if an attacker has write permissions on system notification templates. This function accepts an absolute file path, reads the file's content, and converts it into a Base64-encoded string. By embedding this function within a system notification template, the attacker can exfiltrate the Base64-encoded file content through a triggered system email notification. Once the email is received, the Base64 payload can be decoded, allowing the attacker to read arbitrary files on the server. This is fixed in 5.4.9 and 4.12.8.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-alpha.1, < 5.4.9; >= 3.5.13, < 4.12.8
- craftcms craft_cms: up to 5.0.0-alpha.1; before 5.4.9; up to 3.5.13; before 4.12.8; from 3.5.13 before 4.12.8; from 5.0.0 before 5.4.9
- craftcms/cms (Packagist): from 5.0.0-alpha.1 before 5.4.9; from 3.5.13 before 4.12.8

## Every score

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

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-cw6g-qmjq-6w2w> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52292> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

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

---

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