Craft has a Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution
Published Nov 13, 2024
7.2
HIGHCVSS 4.0
EPSS 1.18%
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 products
-
- Version >= 4.0.0-RC1, < 4.12.5StatusaffectedConstraints-
- Version >= 5.0.0-RC1, < 5.4.6StatusaffectedConstraints-
- Version
-
- Version 0StatusaffectedConstraints<=4.0.0-RC1
- Version 0StatusaffectedConstraints<4.12.5
- Version 0StatusaffectedConstraints<=5.0.0-RC1
- Version 0StatusaffectedConstraints<5.4.6
- Version
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (4)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3276 Advisory
- https://github.com/advisories/GHSA-jrh5-vhr9-qh7q Advisory
- https://github.com/craftcms/cms/security/advisories/GHSA-jrh5-vhr9-qh7q x_refsource_CONFIRMExploitVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-52291
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3276 | Advisory | |
| https://github.com/advisories/GHSA-jrh5-vhr9-qh7q | Advisory | |
| https://github.com/craftcms/cms/security/advisories/GHSA-jrh5-vhr9-qh7q | x_refsource_CONFIRMExploitVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-52291 |
Change history (0)
No recorded changes yet.