Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2024-52293

CVE-2024-52293: Craft CMS vulnerable to Potential Remote Code Execution via missing path normalization & Twig SSTI

November 13, 2024 (updated July 16, 2025)

Missing normalizePath in the function FileHelper::absolutePath could lead to Remote Code Execution on the server via twig SSTI.

(Post-authentication, ALLOW_ADMIN_CHANGES=true)

References

  • github.com/advisories/GHSA-f3cw-hg6r-chfv
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58
  • github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
  • nvd.nist.gov/vuln/detail/CVE-2024-52293

Code Behaviors & Features

Detect and mitigate CVE-2024-52293 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.12.2, all versions starting from 5.0.0-RC1 before 5.4.3

Fixed versions

  • 4.12.2
  • 5.4.3

Solution

Upgrade to versions 4.12.2, 5.4.3 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/craftcms/cms/CVE-2024-52293.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.