Skip to content
OpenAdvisories
Critical · 9.3 Known exploited Scanner template Public exploit CVE-2024-56145 EUVD-2024-3545GHSA-2p6p-9rc9-62j9

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

Published Dec 18, 2024 · Updated Oct 21, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
craftcms cms >= 4.0.0-RC1, < 4.13.2, >= 5.0.0-RC1, < 5.5.2, >= 3.0.0, < 3.9.14 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 5.0.0-RC1, < 5.5.2 5.5.2 GHSA-2p6p-9rc9-62j9
Packagist craftcms/cms >= 4.0.0-RC1, < 4.13.2 4.13.2 GHSA-2p6p-9rc9-62j9
Packagist craftcms/cms >= 3.0.0, < 3.9.14 3.9.14 GHSA-2p6p-9rc9-62j9

References