CVE
CVE-2024-52291
CNA 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.
Affected versions
All Craft CMS vulnerabilities →
- > 5.0.0, < 5.4.6Fixed in 5.4.6
- 5.0.0-rc1This version only
- > 4.0.0, < 4.12.5Fixed in 4.12.5
- 4.0.0-rc3This version only
- 4.0.0-rc2This version only
- 4.0.0-rc1This version only
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.