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

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: yes. In CISA's catalogue since 2025-06-02. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 69.5%, higher than 100% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-18T19:47:26.000Z
- Modified: 2026-06-17T08:11:45.717Z
- Also known as: GHSA-2p6p-9rc9-62j9
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.5.2; from 4.0.0-RC1 before 4.13.2; from 3.0.0 before 3.9.14
- craftcms craft_cms: from 3.0.0 before 3.9.14; from 4.0.0 before 4.13.2; from 5.0.0 before 5.5.2
- Craft CMS Craft CMS: no versions given

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H`
- GitHub: CVSS:4.0 Critical `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/E:A`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Chocapikk/CVE-2024-56145> (exploit, web)
- <https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9> (kev, vendor-advisory, web)
- <https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3> (patch, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56145> (advisory, kev)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2024-56145](https://www.cve.org/CVERecord?id=CVE-2024-56145), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-2p6p-9rc9-62j9](https://github.com/advisories/GHSA-2p6p-9rc9-62j9), CC-BY-4.0, modified 2025-10-22
- NVD: [CVE-2024-56145](https://nvd.nist.gov/vuln/detail/CVE-2024-56145), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2024-56145](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-56145), CC0-1.0, modified 2025-06-02

---

Page: https://cve.day/CVE-2024-56145 · Whole record: https://cve.day/CVE-2024-56145.json · Rebuilt by cve.day 2026-11-25T22:58:50.247Z
