Remote code execution in Craft CMS



| Updated: 2025-02-07
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-56145
CWE-ID CWE-749
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Craft CMS
Web applications / CMS

Vendor Pixel & Tonic, Inc.

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Exposed dangerous method or function

EUVDB-ID: #VU101835

Risk: High

CVSSv4.0: 9.3 [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/E:A/U:Amber]

CVE-ID: CVE-2024-56145

CWE-ID: CWE-749 - Exposed Dangerous Method or Function

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary PHP code on the system.

The vulnerability exists due to usage of unsafe code on systems with enabled register_argc_argv PHP option. A remote attacker can send a specially crafted HTTP request to the application and execute arbitrary PHP code on the system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Craft CMS: 4.0.0 - 5.5.1.1

CPE2.3 External links

https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
https://github.com/advisories/GHSA-2p6p-9rc9-62j9


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.



###SIDEBAR###