Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-56145: Craft CMS Code Injection Vulnerability

97
Patch now
CRITICAL 9.8EXPLOITEDREMOTEUPGRADE

CVE-2024-56145 is a critical-severity flaw (CVSS 9.8) affecting craft cms, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance97.5% (top 1%)
CISA exploited listYes, fix due 2025-06-23
WeaknessCWE-94
Published2024-12-18
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: craftcms

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

craftcms craft cms UPGRADE
Affected: >= 3.0.0 and < 3.9.14 · >= 4.0.0 and < 4.13.2 · >= 5.0.0 and < 5.5.2
Fixed in: 3.9.14, 4.13.2, 5.5.2
Safe to downgrade to: a release before 3.0.0
1. Check installed version
apt-cache policy craft-cms || rpm -q craft-cms || craft-cms --version
2. UPGRADE to 3.9.14 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade craft-cms
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade craft-cms
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 3.0.0 (Debian / Ubuntu)
apt-cache madison craft-cms sudo apt install craft-cms=<VERSION_BEFORE_3.0.0> sudo apt-mark hold craft-cms
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list craft-cms sudo dnf downgrade craft-cms-<VERSION_BEFORE_3.0.0> sudo dnf versionlock add craft-cms
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Composer (PHP) · craftcms/cms · FIXED · 5.5.2 · vulnerable: >= 5.0.0-RC1, < 5.5.2 · source
composer require "craftcms/cms:>=5.5.2"
Fedora 46 · byobu · FIXED · 7.23-1.fc46 · FEDORA-2026-08f2b53446 · source
sudo dnf upgrade --advisory=FEDORA-2026-08f2b53446

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-56145?

craft cms: upgrade to 3.9.14, 4.13.2, 5.5.2. Exact commands for each OS are on this page.

Is CVE-2024-56145 being exploited?

Yes. CVE-2024-56145 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2024-56145 affect?

CVE-2024-56145 affects craft cms. Severity is critical (CVSS 9.8). 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 u

How urgent is CVE-2024-56145?

Priority 97/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

PHP vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.