Skip to main content

CVE-2024-56145 — Vulnerability in craftcms/cms — CVE Details

CRITICAL
Actively Exploited

Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled

Published December 18, 2024Updated October 22, 2025Source: OSV

What Should I Do?

Patch Immediately

This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.

Does your project use an affected craftcms/cms version?

Paste your composer.lock to check it for CVE-2024-56145 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

Impact

You are affected if your php.ini configuration has register_argc_argv enabled.

Patches

Update to 3.9.14, 4.13.2, or 5.5.2.

Workarounds

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

Advisory Timeline

  • First published December 18, 2024 (708 days ago).
  • Last revised October 22, 2025 — 308 days after initial publication.
  • Added to CISA's Known Exploited Vulnerabilities catalog 165 days after publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update craftcms/cms to 3.9.14 or later
composer require "craftcms/cms:^3.9.14"
Composer
Update craftcms/cms to 5.5.2 or later
composer require "craftcms/cms:^5.5.2"
Composer
Update craftcms/cms to 4.13.2 or later
composer require "craftcms/cms:^4.13.2"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
craftcms/cms Packagist · Affected: 3.0.0, 3.0.0.1, 3.0.0.2, 3.0.1 (+431 more)3.9.14
craftcms/cms Packagist · Affected: 5.0.0, 5.0.0-RC1, 5.0.1, 5.0.2 (+64 more)5.5.2
craftcms/cms Packagist · Affected: 4.0.0, 4.0.0-RC1, 4.0.0-RC2, 4.0.0-RC3 (+160 more)4.13.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H

Frequently Asked Questions

What is CVE-2024-56145?
Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2024-56145?
CVE-2024-56145 affects craftcms/cms. It has a 69.5% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-56145 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
69.48%
EPSS percentile: 99.5

This places it in the top 5% of EPSS-scored vulnerabilities — 99.5% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Known Exploited Vulnerability

This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Added to KEV catalog: June 2, 2025

Remediation deadline: June 23, 2025

Also Known As

GHSA-2p6p-9rc9-62j9

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock