What’s Vulnerable › Vulnerabilities

CVE-2024-52293: Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI

Description

Craft is a content management system (CMS). Prior to 4.12.2 and 5.4.3, Craft is missing normalizePath in the function FileHelper::absolutePath could lead to Remote Code Execution on the server via twig SSTI. This is a sequel to CVE-2023-40035. This vulnerability is fixed in 4.12.2 and 5.4.3.

Affected products

How to fix

Upgrade to a fixed version: craftcms cms 4.12.2, 5.4.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-52293 or the next vulnerability affects your stack