SB20230821232 - Security restrictions bypass in Craft CMS



SB20230821232 - Security restrictions bypass in Craft CMS

Published: August 21, 2023

Security Bulletin ID SB20230821232
CSH Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Path traversal (CVE-ID: CVE-2023-40035)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 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/E:U/U:Clear


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.


Remediation

Install update from vendor's website.