LiveActive security incident?Get immediate response
CVE Record

CVE-2024-56145: RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms

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.

CriticalCVSS 9.3Known exploitedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

Craft CMS sites in affected 3.x, 4.x, and 5.x releases can be exposed to remote code execution when PHP register_argc_argv is enabled. This is a critical, internet-reachable risk because exploitation needs no login or user interaction. CISA lists it as known exploited, so exposed sites should be treated as urgent remediation targets.

Executive priority

Treat this as immediate priority for any internet-facing Craft CMS estate. The issue enables remote code execution under a specific PHP setting, has critical severity, and is listed by CISA as known exploited. Remediation should be tracked as an incident-driven patching task, not routine maintenance.

Technical view

CVE-2024-56145 is a CWE-94 code injection issue in craftcms/cms. Affected ranges are 3.0.0 to before 3.9.14, 4.0.0-RC1 to before 4.13.2, and 5.0.0-RC1 to before 5.5.2, contingent on php.ini register_argc_argv being enabled. CVSS v4.0 is 9.3 with network, low-complexity, unauthenticated attack characteristics.

Likely exposure

Highest exposure is internet-facing Craft CMS deployments running affected versions with PHP register_argc_argv enabled. Sites already updated to 3.9.14, 4.13.2, or 5.5.2 are outside the named affected ranges. The provided sources do not identify specific hosting platforms or default configuration prevalence.

Exploitation context

Active exploitation is supported by CISA KEV listing. The source bundle also cites a public exploit repository, indicating public exploit material exists. The vendor advisory describes the RCE vector as unspecified, so this assessment should avoid assuming exact exploit mechanics beyond the documented configuration condition.

Researcher notes

Evidence supports affected versions, the register_argc_argv prerequisite, patch versions, CWE-94 classification, CVSS 9.3, CISA KEV status, and public exploit availability. The provided advisory does not disclose the precise RCE vector, affected configuration prevalence, or indicators of compromise.

Mitigation direction

  • Upgrade Craft CMS to 3.9.14, 4.13.2, 5.5.2, or later.
  • Disable PHP register_argc_argv where immediate upgrade is not possible.
  • Prioritize internet-facing Craft CMS systems before internal-only instances.
  • Review vendor guidance before applying compensating controls not listed here.
  • After remediation, confirm the deployed Craft version and PHP setting.

Validation and detection

  • Inventory Craft CMS versions across production, staging, and backups.
  • Check php.ini for register_argc_argv on each Craft host.
  • Confirm public-facing Craft sites are patched or have the setting disabled.
  • Review CISA KEV status when assigning remediation deadlines.
  • Look for post-exploitation indicators if exposure existed before remediation.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-56145 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.3 (4.0)
Known Exploited
Yes
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.3CVSS 4.0CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

9.3Critical
CVSS 4.0 vector shape for CVE-2024-56145Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
craftcmscms>= 4.0.0-RC1, < 4.13.2, >= 5.0.0-RC1, < 5.5.2, >= 3.0.0, < 3.9.14Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.