CVE-2024-56145

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

Basic Information

CVE State
PUBLISHED
Reserved Date
December 16, 2024
Published Date
December 18, 2024
Last Updated
October 21, 2025
Vendor
craftcms
Product
cms
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.
Tags
php cisa nuclei_scanner

CVSS Scores

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

CVSS v3.1

9.8 - CRITICAL

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Score

Score
93.93% (Percentile: 99.89%) as of 2026-05-31

SSVC Information

Exploitation
active
Automatable
Yes
Technical Impact
total

Exploit Status

Exploited in the Wild
Yes (2026-06-01 13:30:39 UTC) Source
Proof of Concept Available
Yes (added 2024-12-22 11:53:04 UTC) Source

Known Exploited Vulnerability Information

Source Added Date
CVE 2026-06-01 10:30:59 UTC

Potential Proof of Concepts

Warning: These PoCs have not been tested and could contain malware. Use at your own risk.

craftcms_ftp_template

Type: metasploit • Created: Unknown

Metasploit module for CVE-2024-56145

Sachinart/CVE-2024-56145-craftcms-rce

Type: github • Created: 2024-12-22 11:53:04 UTC • Stars: 2

CVE-2024-56145 SSTI to RCE - twig templates

Chocapikk/CVE-2024-56145

Type: github • Created: 2024-12-20 03:34:01 UTC • Stars: 42

Unauthenticated RCE on CraftCMS when PHP `register_argc_argv` config setting is enabled

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Proof of Concept Exploit Available

  • Detected by Nuclei

  • Detected by Metasploit

  • Added to KEVIntel