CVE-2024-56145

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

State
Published
Severity
9.3 Critical
Published
Dec 18, 2024
Updated
Oct 21, 2025
Reserved
Dec 16, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
cmscraftcms
  • >= 4.0.0-RC1, < 4.13.2Affected
  • >= 5.0.0-RC1, < 5.5.2Affected
  • >= 3.0.0, < 3.9.14Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.