HighGHSA-jrh5-vhr9-qh7q
Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution
Affected versions
5.0.0-RC1 to before 5.4.6, 4.0.0-RC1 to before 4.12.5 - fixed in 5.4.6Details
### Summary 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](https://craftcms.com/docs/5.x
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected