Exposed dangerous method or function in Craft CMS - CVE-2024-56145

 

Exposed dangerous method or function in Craft CMS - CVE-2024-56145

Published: December 18, 2024 / Updated: June 2, 2025


Vulnerability identifier: #VU101835
CSH Severity: High
CVSS v4: 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]
CVE-ID: CVE-2024-56145
CWE-ID: CWE-749
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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.


Affected software

Craft CMS

How to mitigate CVE-2024-56145

Install updates from vendor's website.

Craft CMS - addressed in versions 4.13.2, 5.5.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins