Vulnerability record

CVE-2024-56145

Craft CMS Code Injection Vulnerability

Severity: CriticalExploitation: Exploitation confirmedCISA KEV
What should I do?

This vulnerability is in the CISA Known Exploited Vulnerabilities catalog: attackers are using it. If you run Craft CMS, fix it now.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

US federal civilian agencies must remediate by Jun 23, 2025.

Patch status

Official fix available since

Apply the vendor's update to every affected system. Check the fixed-in versions below where known.

Basis: NVD patch reference

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.

Source: NIST National Vulnerability Database. Official vulnerability data, reproduced as published.

Affected products

Products affected by this vulnerability, with versions and the source of each entry
ProductVendorAffected versionsFixed inSource
Craft CMSCraft CMS>= 3.0.0, < 3.9.14; >= 4.0.0, < 4.13.2; >= 5.0.0, < 5.5.23.9.14; 4.13.2; 5.5.2KEV

Sources: KEV = CISA Known Exploited Vulnerabilities catalog.

Intelligence timeline

Developments from the last 30 days, newest first.

  1. CVSS scoredUpdateKEV

    CVE-2024-56145 scored CVSS 9.3: Craft CMS Craft CMS, Craft CMS Code Injection Vulnerability

    CISA lists this as exploited in the wild. Unpatched Craft CMS systems are exposed to active attacks now.

    Basis: NIST National Vulnerability Database

  2. Patch releasedUpdateKEV

    Patch released for CVE-2024-56145: Craft CMS Craft CMS, Craft CMS Code Injection Vulnerability

    An official fix is now available for Craft CMS Craft CMS. This vulnerability is being exploited, so apply it promptly.

    Basis: NVD patch reference

1 earlier event is available with a subscription. See plans.

Coverage

We have not published a story about this vulnerability yet.

References

  • github.com https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
  • nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-56145
  • github.com https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
  • github.com https://github.com/Chocapikk/CVE-2024-56145
  • cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145