# CVE-2024-56145: RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms

> CVE-2024-56145: RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms. CVSS 9.8 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2024-56145
Last updated: 2026-06-17T08:11:45Z

- Published: 2024-12-18 20:37 UTC · Updated: 2026-06-17 08:11 UTC · Assigner: GitHub\_M
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 97.4%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2025-06-02, federal due date 2025-06-23, ransomware use: Unknown
- CWE: CWE-94

## 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.

## CISA required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

## Affected vendors and products

- craftcms: cms

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-56145)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-56145)
- [https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3](https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3)
- [https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9](https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-56145 · Markdown: https://rewindex.com/cve/CVE-2024-56145.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-56145 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:14:35.723Z
