Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-56145— RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms

Quick assessment

Affected
craftcms cms
Exploitation
Confirmed exploitation in the wild; remediate immediately
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Craft CMS是Craft CMS开源的一套内容管理系统(CMS)。 Craft CMS 5.0.0-RC1版本至5.5.2之前版本和4.0.0-RC版本至4.13.2之前版本存在代码注入漏洞,该漏洞源于php.ini配置的register_argc_argv选项被启用时,会出现未指定的远程代码执行向量。

AI Predicted 7.5 Difficulty: Moderate KEV EPSS 97.41% · P100

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-56145

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms
Source: CVE Program / CVE List V5
Vulnerability Description
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected versions are affected by this vulnerability if their php.ini configuration has `register_argc_argv` enabled. For these users an unspecified remote code execution vector is present. Users are advised to update to version 3.9.14, 4.13.2, or 5.5.2. Users unable to upgrade should disable `register_argc_argv` to mitigate the issue.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Craft CMS 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Craft CMS是Craft CMS开源的一套内容管理系统(CMS)。 Craft CMS 5.0.0-RC1版本至5.5.2之前版本和4.0.0-RC版本至4.13.2之前版本存在代码注入漏洞,该漏洞源于php.ini配置的register_argc_argv选项被启用时,会出现未指定的远程代码执行向量。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

Vendor Product Affected Versions CPE Subscribe
craftcms cms >= 4.0.0-RC1, < 4.13.2 -

II. Public POCs for CVE-2024-56145

# POC Description Source Link Shenlong Link
1 Unauthenticated RCE on CraftCMS when PHP `register_argc_argv` config setting is enabled https://github.com/Chocapikk/CVE-2024-56145 POC Details
2 CVE-2024-56145 SSTI to RCE - twig templates https://github.com/Sachinart/CVE-2024-56145-craftcms-rce POC Details
3 A POC lab environment for CVE-2024-56145 CraftCMS RCE. https://github.com/hmhlol/craft-cms-RCE-CVE-2024-56145 POC Details
4 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. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56145.yaml POC Details
5 None https://github.com/Threekiii/Awesome-POC/blob/master/CMS%E6%BC%8F%E6%B4%9E/CraftCMS%20register_argc_argv%20%E8%BF%9C%E7%A8%8B%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E%20CVE-2024-56145.md POC Details
6 https://github.com/vulhub/vulhub/blob/master/craftcms/CVE-2024-56145/README.md POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-56145

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-56145 (1)

Vendor Advisories for CVE-2024-56145 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-56145

No comments yet


Leave a comment