CVE-2024-52292
published high CVSS 3.1 · 7.7Craft Allows Attackers to Read Arbitrary System Files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms>= 5.0.0-alpha.1, < 5.4.9 · >= 3.5.13, < 4.12.8 | Affected | Not stated | GitHub_M |
| craftcms | — | craft_cms0 through 5.0.0-alpha.1 · 0 to < 5.4.9 · 0 through 3.5.13 · 0 to < 4.12.8 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | >= 5.0.0-alpha.1, < 5.4.9 (affected)>= 3.5.13, < 4.12.8 (affected) | GitHub_M · cna |
| craftcms | craft_cms | 0 through 5.0.0-alpha.1 (affected · custom)0 to < 5.4.9 (affected · custom)0 through 3.5.13 (affected · custom)0 to < 4.12.8 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-552 CWE-552: Files or Directories Accessible to External Parties
- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
2GitHub_M · cna
Craft Allows Attackers to Read Arbitrary System Files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 70ed8c3df045796658148147d6a0ea2bf95e7ab06cea1ab98b5507fc9ec7c811
- Ingested
- 23 Sep 2026, 08:30:39 UTC
- Source record
- Official CVE record