What’s Vulnerable › Vulnerabilities
CVE-2024-52292: Craft Allows Attackers to Read Arbitrary System Files
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% 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). 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.
Affected products
- craftcms cms: from 3.5.13 before 4.12.8; from 5.0.0 before 5.4.9 — fixed in 4.12.8, 5.4.9
How to fix
Upgrade to a fixed version: craftcms cms 4.12.8, 5.4.9. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2024-52292 or the next vulnerability affects your stack