| Reporter | Title | Published | Views | Family All 33 |
|---|---|---|---|---|
| Exploit for Code Injection in Craftcms Craft_Cms | 20 Dec 202403:34 | – | githubexploit | |
| Exploit for Code Injection in Craftcms Craft_Cms | 6 Apr 202510:16 | – | githubexploit | |
| Exploit for Code Injection in Craftcms Craft_Cms | 22 Dec 202411:53 | – | githubexploit | |
| Craft CMS Twig Template Injection / Remote Code Execution Exploit | 27 Jan 202500:00 | – | zdt | |
| CVE-2024-56145 | 18 Dec 202400:00 | – | attackerkb | |
| The vulnerability of the Craft CMS content management system’s `register_argc_argv` configuration allows a hacker to execute arbitrary code. | 3 Jan 202500:00 | – | bdu_fstec | |
| CVE-2024-56145 | 18 Dec 202422:54 | – | circl | |
| Craft CMS Code Injection Vulnerability | 2 Jun 202500:00 | – | cisa_kev | |
| CISA Adds Five Known Exploited Vulnerabilities to Catalog | 2 Jun 202512:00 | – | cisa | |
| Craft CMS 代码注入漏洞 | 18 Dec 202400:00 | – | cnnvd |
id: CVE-2024-56145
info:
name: Craft CMS - Remote Code Execution via Template Path Manipulation
author: jackhax
severity: critical
description: |
This template identifies a critical Remote Code Execution (RCE) vulnerability in Craft CMS, identified as GHSA-2p6p-9rc9-62j9.
The vulnerability exists due to improper handling of the `--templatesPath` query parameter, allowing attackers to execute arbitrary code by referencing malicious Twig templates.
impact: |
Successful exploitation of this vulnerability could allow an unauthenticated attacker to perform remote code execution.
remediation: |
Upgrade CraftCMS to either >5.5.2 or >4.13.2 or >3.9.14. Or If you can't upgrade yet, and register_argc_argv is enabled, you can disable it to mitigate the issue.
reference:
- https://github.com/advisories/GHSA-2p6p-9rc9-62j9
- https://www.assetnote.io/resources/research/how-an-obscure-php-footgun-led-to-rce-in-craft-cms
- https://github.com/Chocapikk/CVE-2024-56145
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
classification:
cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
cvss-score: 9.3
cve-id: CVE-2024-56145
cwe-id: CWE-94
epss-score: 0.97446
epss-percentile: 0.99891
cpe: cpe:2.3:a:craftcms:craft:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: craftcms
product: cms
shodan-query:
- http.html:"craftcms"
- http.favicon.hash:"-47932290"
fofa-query:
- icon_hash=-47932290
- body=craftcms
publicwww-query: craftcms
tags: cve,cve2024,rce,craftcms,ssti,kev,vkev,vuln
variables:
nonce: "{{rand_int(1000000000,9999999999)}}"
http:
- raw:
- |
GET ?--configPath=/nuclei_test/{{nonce}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{nonce}}'
- 'mkdir()'
- 'Permission denied'
- 'No such file or directory'
condition: and
- type: status
status:
- 503
# digest: 4a0a0047304502205f5f246114789e514b7e9d486b193beefc391e9c89510b5cff4d9470cfe749a7022100d3758c189f6e501b90a6cc84148182d4f915ced2f53bc8e0de16dbc9d45eda2d:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation