craftcms/cms · Security
Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled
- GHSA ID
- GHSA-2p6p-9rc9-62j9
- CVE ID
- CVE-2024-56145
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
- CVSS v4
- 9.3 · 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
Description
Impact
You are affected if your php.ini configuration has register_argc_argv enabled.
Patches
Update to 3.9.14, 4.13.2, or 5.5.2.
Workarounds
If you can't upgrade yet, and register_argc_argv is enabled, you can disable it to mitigate the issue.
CWEs
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 ↗
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-56145 ↗
- https://github.com/Chocapikk/CVE-2024-56145 ↗
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145 ↗
- https://github.com/advisories/GHSA-2p6p-9rc9-62j9 ↗