SB2024111362 - Path traversal in Craft CMS



SB2024111362 - Path traversal in Craft CMS

Published: November 13, 2024 Updated: April 17, 2026

Security Bulletin ID SB2024111362
CSH Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Path traversal (CVE-ID: CVE-2024-52293)

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

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear


The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper path normalization in FileHelper::absolutePath when validating filesystem paths and rendering Twig templates. A remote privileged user can create a local filesystem path that bypasses system directory checks and upload a crafted Twig template to execute arbitrary code.

Exploitation requires post-authentication access and ALLOW_ADMIN_CHANGES to be enabled.


Remediation

Install update from vendor's website.