Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-56145

CRITICAL 9.3ExploitedPoCEPSS 100%

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

Also known as GHSA-2p6p-9rc9-62j9

Mitigation

  • Upgrade craftcms/cms to one of 5.5.2, 4.13.2, 3.9.14 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package craftcms/cms (>= 5.0.0-RC1, < 5.5.2)
  • Anyone running craftcms cms >= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14

Vulnerability facts

Affected
craftcms/cms >= 5.0.0-RC1, < 5.5.2
Fixed in
5.5.2, 4.13.2, 3.9.14
Exploited in the wild
Yes: in CISA KEV since 2025-06-02; federal due date 2025-06-23
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
69.48% chance of exploitation in 30 days (percentile 100, 2026-11-26)
CWE
CWE-94
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Packagist craftcms/cms>= 5.0.0-RC1, < 5.5.25.5.2, 4.13.2, 3.9.14osv
craftcms cms>= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14—cvelist

Timeline

  1. 2024-12-18 Published
  2. 2025-06-02 Added to CISA KEV (exploited in the wild)
  3. 2025-06-23 CISA remediation due date for US federal agencies
  4. 2026-06-17 Last modified

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-56145. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56145.md
Affected: craftcms/cms >= 5.0.0-RC1, < 5.5.2
Fixed in: 5.5.2, 4.13.2, 3.9.14

Steps:
1. Search this machine and project for craftcms/cms (Packagist), craftcms cms: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-56145 being exploited?

Yes. CISA lists CVE-2024-56145 in its Known Exploited Vulnerabilities catalog since 2025-06-02, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 69.48% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-56145?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-56145?

craftcms/cms >= 5.0.0-RC1, < 5.5.2.

Is there a fix for CVE-2024-56145?

Yes. Fixed in 5.5.2, 4.13.2, 3.9.14. Upgrade craftcms/cms to one of 5.5.2, 4.13.2, 3.9.14 (or later in the same release line).

How do I check if I'm affected by CVE-2024-56145?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors