Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘 Packagist
CISA KEV · ACTIVELY EXPLOITED

CVE-2024-56145 — cms

Fix: craftcms/cms@82e893f

CVE-2024-56145 is a Code Injection vulnerability in craftcms/cms. It is in CISA's Known Exploited Vulnerabilities catalog (added 2025-06-02) — treat it as actively exploited and patch now. A fix is available for craftcms/cms — see the affected versions and patch details below.

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

Also known asGHSA-2p6p-9rc9-62j9
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
3 known
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

Exploitation Status

Actively exploited in the wild

  • Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2025-06-02. Federal agencies were required to remediate by 2025-06-23.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2024-56145.

EPSS Exploitation Probability

via FIRST.org ↗
97.4%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
92.9%94.7%96.6%98.5%94.0%97.4%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

3 pkgs affected
🐘craftcms/cms🐘craftcms/cms🐘craftcms/cms

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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 Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistcraftcms/cms≥ 5.0.0-RC1&&< 5.5.25.5.2composer require craftcms/cms:^5.5.2
🐘Packagistcraftcms/cms≥ 4.0.0-RC1&&< 4.13.24.13.2composer require craftcms/cms:^4.13.2
🐘Packagistcraftcms/cms≥ 3.0.0&&< 3.9.143.9.14composer require craftcms/cms:^3.9.14

Affected Products

1 product · 3 configurations
Application
craft cmscraftcms
≥ 5.0.0 && < 5.5.2
range
Exploits & PoCs
3

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for craftcms/cms, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update craftcms/cms to 5.5.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-56145 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

How to detect CVE-2024-56145

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2024-56145 -u https://target
Template
Craft CMS - Remote Code Execution via Template Path Manipulation
Severity
critical
Impact
Successful exploitation of this vulnerability could allow an unauthenticated attacker to perform remote code execution.
Remediation
Upgrade CraftCMS to either >5.5.2 or >4.13.2 or >3.9.14. Or If you can't upgrade yet, and register_argc_argv is enabled, you can disable it to mitigate the issue.

Template by ProjectDiscovery nuclei-templates (jackhax), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2024-56145 in your dependencies?

Find it across Packagist, including transitive dependencies.

Actively Exploited: CVE-2024-56145: cms RCE