Wiz Agents & Workflows are here

CVE-2024-56145
PHP vulnerability analysis and mitigation

Overview

CVE-2024-56145 is a critical remote code execution (RCE) vulnerability affecting Craft CMS, a flexible, user-friendly content management system. The vulnerability was discovered in December 2024 and affects Craft versions 5.0.0-RC1 to 5.5.2 (excluded), 4.0.0-RC1 to 4.13.2 (excluded), and 3.0.0 to 3.9.14 (excluded). The vulnerability is present when the PHP configuration setting 'register_argc_argv' is enabled, which is the default configuration in the official Craft CMS docker image (Assetnote Blog, GitHub Advisory).

Technical details

The vulnerability exists in the bootstrap/bootstrap.php file of Craft CMS, where command-line options are processed without verifying whether the code is running in a CLI environment. The flaw leverages the behavior of the register_argc_argv PHP configuration, which allows query string arguments to populate the $_SERVER['argv'] array, mimicking command-line input. The vulnerability has been assigned a CVSS score of 9.3 (Critical), with the vector string 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 (NVD).

Impact

The vulnerability enables unauthenticated remote code execution on affected Craft CMS installations. Attackers can manipulate paths like --templatesPath or --configPath, forcing the CMS to load arbitrary files. This can lead to complete system compromise, particularly through the exploitation of template files loaded via FTP wrapper, bypassing Craft CMS's built-in sandboxing mechanisms (Assetnote Blog).

Mitigation and workarounds

The vulnerability has been patched in Craft CMS versions 5.5.2, 4.13.2, and 3.9.14. Users are strongly advised to update to these versions or later. For those unable to upgrade immediately, a temporary mitigation is available by disabling the register_argc_argv setting in the php.ini configuration file (GitHub Advisory).

Community reactions

The Craft CMS team responded promptly to the vulnerability disclosure, releasing patches within 24 hours. The security community has noted the widespread impact potential, given that Craft CMS powers over 150,000 websites worldwide, ranging from small businesses to large enterprises (Assetnote Blog).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34728HIGH8.7
  • PHPPHP
  • phpmyfaq/phpmyfaq
NoYesApr 02, 2026
CVE-2026-34598HIGH7.1
  • PHPPHP
  • yeswiki/yeswiki
NoYesApr 02, 2026
CVE-2026-34973MEDIUM6.9
  • PHPPHP
  • thorsten/phpmyfaq
NoYesApr 02, 2026
CVE-2026-34729MEDIUM6.1
  • PHPPHP
  • phpmyfaq/phpmyfaq
NoYesApr 02, 2026
CVE-2026-34974MEDIUM5.4
  • PHPPHP
  • thorsten/phpmyfaq
NoYesApr 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management