Craft Allows Attackers to Read Arbitrary System Files
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Craft CMS | cms | 5.0.0-alpha.1 to before 5.4.9; 3.5.13 to before 4.12.8 | 5.4.9, 4.12.8 | Patch available | CNA |
| — | craftcms/cms (Packagist) | 5.0.0-alpha.1 to before 5.4.9 | 5.4.9 | Patch available | GHSA-cw6g-qmjq-6w2w |
| — | craftcms/cms (Packagist) | 3.5.13 to before 4.12.8 | 4.12.8 | Patch available | GHSA-cw6g-qmjq-6w2w |
- cms VendorCraft CMS Affected 5.0.0-alpha.1 to before 5.4.9; 3.5.13 to before 4.12.8 Fixed in 5.4.9, 4.12.8 Patch available CNA
- craftcms/cms (Packagist) Vendor— Affected 5.0.0-alpha.1 to before 5.4.9 Fixed in 5.4.9 Patch available GHSA-cw6g-qmjq-6w2w
- craftcms/cms (Packagist) Vendor— Affected 3.5.13 to before 4.12.8 Fixed in 4.12.8 Patch available GHSA-cw6g-qmjq-6w2w
Remediation
- Fix · CNA cms (craftcms) Fixed in 5.4.9, 4.12.8
- Fix · GHSA-cw6g-qmjq-6w2w craftcms/cms (Packagist) Fixed in 5.4.9 Advisory →
- Fix · GHSA-cw6g-qmjq-6w2w craftcms/cms (Packagist) Fixed in 4.12.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-52292
- 2026-10-03 Alias added: GHSA-cw6g-qmjq-6w2w
References
More Craft Cms vulnerabilities
- TI-2025-23503 Craft CMS Allows Remote Code Execution KEVCVSS 3.1CRITICAL 10.0
- TI-2024-37138 RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms KEVCVSS 4.0CRITICAL 9.3
- TI-2025-16994 Potential RCE with a compromised security key in craft/cms KEVCVSS 3.1HIGH 8.1
- TI-2025-24595 Craft CMS stores user-provided content in session files KEVCVSS 4.0MEDIUM 6.9
- TI-2023-22284 Craft CMS Remote Code Execution vulnerability CVSS 3.1CRITICAL 10.0
- TI-2024-25171 Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-52292 · CVE Program
- CVE-2024-52292 · NVD
- FIRST EPSS
- GHSA-cw6g-qmjq-6w2w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences