#VU126474 Path traversal in Craft CMS - CVE-2024-52293
Published: November 13, 2024 / Updated: April 17, 2026
Craft CMS
Pixel & Tonic, Inc.
Description
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.