CVE-2024-52293: Craft CMS - Server-Side Template Injection
- Cve: CVE-2024-52293
- Name: Craft CMS - Server-Side Template Injection
- 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.
- Impact: Attackers can execute arbitrary code on the server, potentially leading to full system compromise.
- Remediation: Update to version 4.12.2 or 5.4.3.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01358
- Epss percentile: 0.72399
- Assignee: [email protected]
- Published at: 2024-11-13T16:15:19Z
- Age in days: 741
- Modified at: 2026-06-17T08:06:57Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-52293
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv | nvd | 2024-11-13 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58 | nvd | Patch |
| https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | > 5.0.0, < 5.4.3; = 5.0.0 rc1; > 4.0.0, < 4.12.2; = 4.0.0 rc1; = 4.0.0 rc2; = 4.0.0 rc3 | no | nvd | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | commit, fix, package, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-11-13
- Remote: yes
- Authentication required: yes
- Exposed hosts: 34344
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports