Path traversal in Craft CMS - CVE-2024-52293

 

Path traversal in Craft CMS - CVE-2024-52293

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


Vulnerability identifier: #VU126474
CSH Severity: Low
CVSS v4: 8.6 [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]
CVE-ID: CVE-2024-52293
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Craft CMS

How to mitigate CVE-2024-52293

Install security update from vendor's website.

Craft CMS - addressed in versions 4.12.2, 5.4.3

External References

Related Security Bulletins