CVE-2024-52293
published high CVSS 3.1 · 7.2Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms>= 4.0.0-RC1, < 4.12.2 · >= 5.0.0-RC1, < 5.4.3 | Affected | Not stated | GitHub_M |
| craftcms | — | craft_cms0 through 4.0.0-RC1 · 0 to < 4.12.2 · 0 through 5.0.0-RC1 · 0 to < 5.4.3 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | >= 4.0.0-RC1, < 4.12.2 (affected)>= 5.0.0-RC1, < 5.4.3 (affected) | GitHub_M · cna |
| craftcms | craft_cms | 0 through 4.0.0-RC1 (affected · custom)0 to < 4.12.2 (affected · custom)0 through 5.0.0-RC1 (affected · custom)0 to < 5.4.3 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2Provider assertions
2GitHub_M · cna
Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 14d43960d9f284b04087cea8554280a2b40a4f0f69aaca922a21e9d05dcca4d8
- Ingested
- 23 Sep 2026, 08:30:39 UTC
- Source record
- Official CVE record