CVE-2024-52291
published high CVSS 3.1 · 8.5Craft has a Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms>= 5.0.0-RC1, < 5.4.6 · >= 4.0.0-RC1, < 4.12.5 | Affected | Not stated | GitHub_M |
| craftcms | — | craft_cms0 through 5.0.0-RC1 · 0 to < 5.4.6 · 0 through 4.0.0-RC1 · 0 to < 4.12.5 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
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
- 8.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | >= 5.0.0-RC1, < 5.4.6 (affected)>= 4.0.0-RC1, < 4.12.5 (affected) | GitHub_M · cna |
| craftcms | craft_cms | 0 through 5.0.0-RC1 (affected · custom)0 to < 5.4.6 (affected · custom)0 through 4.0.0-RC1 (affected · custom)0 to < 4.12.5 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
2GitHub_M · cna
Craft has a Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a90e236f4b024a0fddd71764e962cca09ac9f9e3dd40eff56eac895ce7e817c1
- Ingested
- 23 Sep 2026, 08:30:39 UTC
- Source record
- Official CVE record