Path traversal in Craft CMS - CVE-2023-40035
Published: August 21, 2023
Vulnerability identifier: #VU79808
CSH Severity: Low
CVSS v4: 7.4 [CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40035
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote user to upload files to arbitrary locations.
The vulnerability exists due to input validation error within the validatePath function. A remote user can upload a malicious PHP template file and execute it on the server.
Successful exploitation requires "ALLOW_ADMIN_CHANGES=true" configuration.
Affected software
Craft CMS
How to mitigate CVE-2023-40035
Install update from vendor's website.
Craft CMS - addressed in versions 3.8.15, 4.4.15