CVE-2024-56145KEV · OVERDUECWE-94

RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms

Critical · published December 18, 2024

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.3. It is confirmed in active exploitation. It sits in the 99.9th percentile for exploit probability.

488
days past CISA
deadline
CVSS v4.0
9.3
EPSS
97%
Percentile
99.9
In the wild
Confirmed
What it is

🚨 A remote code execution vulnerability lurks in Craft CMS when `register_argc_argv` is enabled in php.ini — think of it as an unlocked door inviting trouble! 🔥 This is like leaving a window wide open in a high-security building; if the right person walks by, they can just stroll right in without any obstacles. In this case, a mischievous visitor could run any code they want on your server! If exploited, an attacker could run arbitrary commands remotely, potentially gaining complete control over your website and sensitive data. This means they could modify content, steal user information, or even take your site offline — absolutely devastating!

Put simply

This is like leaving a window wide open in a high-security building; if the right person walks by, they can just stroll right in without any obstacles. In this case, a mischievous visitor could run any code they want on your server! This vulnerability in Craft CMS allows remote code execution through a vector tied to PHP's `register_argc_argv`, which can execute arbitrary code if enabled in your configuration.

What to do

If exploited, an attacker could run arbitrary commands remotely, potentially gaining complete control over your website and sensitive data. This means they could modify content, steal user information, or even take your site offline — absolutely devastating! Immediately update Craft CMS to version 3.9.14, 4.13.2, or 5.5.2 to close this critical hole. If upgrading isn't possible right now, disable `register_argc_argv` in your php.ini as a temporary fix. Don't wait on this! You've got this! Follow these steps to secure your site, and you'll be a security hero in no time! 🛡️

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
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
EPSS
0.97405 · 99.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-12-18T20:37Z
KEV added
2025-06-02 · due 2025-06-23
EPSS history
Timeline
  • 02 JUN 00:00Z
    Added to CISA KEV — remediate by Jun 23
    kev
  • 18 DEC 20:37Z
    RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms
    cvelistv5