CVE-2024-56145: Craft CMS Code Injection Vulnerability

Published Dec 18, 2024
·
Updated

Impact You are affected if your php.ini configuration has registerargcargv enabled.

Patches Update to 3.9.14, 4.13.2, or 5.5.2.

Workarounds If you can't upgrade yet, and registerargcargv is enabled, you can disable it to mitigate the issue.

Other sources

Craft CMS contains a code injection vulnerability. Users with affected versions are vulnerable to remote code execution if their php.ini configuration has registerargcargv enabled.

CISA

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 registerargcargv 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 registerargcargv to mitigate the issue.

MITRE

Affected Software

7 affected componentsFixes available
composer/craftcms/cms>=3.0.0<3.9.14
3.9.14
composer/craftcms/cms>=4.0.0-RC1<4.13.2
4.13.2
composer/craftcms/cms>=5.0.0-RC1<5.5.2
5.5.2
Craft CMS Craft CMS
CraftCMS Craft CMS>=3.0.0<3.9.14
CraftCMS Craft CMS>=4.0.0<4.13.2
CraftCMS Craft CMS>=5.0.0<5.5.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 3.9.14
  2. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 4.13.2
  3. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.5.2
  4. Remove

    Remove composer/craftcms/cms from your environment.

    Discontinue use or uninstall the product if mitigations are unavailable.

  5. Configuration

    Disable register_argc_argv in php.ini to mitigate the code injection / RCE vulnerability if you cannot yet upgrade.

    PHP (php.ini) register_argc_argv = Off
  6. Compensating control

    Apply mitigations per vendor instructions and follow applicable BOD 22-01 guidance for cloud services if you cannot upgrade immediately.

Event History

Dec 18, 2024
Advisory Published
via GitHub·07:47 PM
CVE Published
via MITRE·08:37 PM
Data Sourced
via MITRE·08:37 PM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 2, 2025
Known Exploited
via CISA·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56145?

CVE-2024-56145 is considered a significant vulnerability, particularly if the php.ini configuration has `register_argc_argv` enabled.

2

How do I fix CVE-2024-56145?

To fix CVE-2024-56145, update your Craft CMS to version 3.9.14, 4.13.2, or 5.5.2.

3

What software is affected by CVE-2024-56145?

CVE-2024-56145 affects Craft CMS versions below 3.9.14, 4.13.2, and 5.5.2.

4

What should I do if I cannot upgrade to fix CVE-2024-56145?

If unable to upgrade, mitigate CVE-2024-56145 by disabling `register_argc_argv` in your php.ini configuration.

5

Why is CVE-2024-56145 a concern for my website?

CVE-2024-56145 is a concern as it can lead to security vulnerabilities that could allow unauthorized access or manipulation of your Craft CMS.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203