BreachSpiderVerified, not vibes

CVE-2024-37843 in Craftcms Craft Cms

Critical 9.8

Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS9.1%
EPSS percentile96th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Craftcms Craft Cms < 3.7.31

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-37843
BreachSpider IDBS-2024-GLOBAL-267233-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2024-06-25
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-89: SQL Injection

Attacker inserts SQL commands into application queries through user-controlled input, allowing unauthorized database access.

Related attack patterns (CAPEC)

CAPEC-7 Blind SQL Injection via CWE-89

CAPEC-108 Command Line Execution through SQL Injection via CWE-89

CAPEC-109 Object Relational Mapping Injection via CWE-89

CAPEC-110 SQL Injection through SOAP Parameter Tampering via CWE-89

CAPEC-470 Expanding Control over the Operating System from the Database via CWE-89

Show all 6

CAPEC-66 SQL Injection via CWE-89

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Craft CMS up to v3.7.31 contains a SQL injection vulnerability via the GraphQL API endpoint, which could allow an attacker to execute arbitrary SQL commands, leading to data theft, data manipulation, or system compromise. The vulnerability has a CVSS score of 9.8, indicating a critical severity level. A public proof of concept (PoC) is available, increasing the risk of exploitation. Immediate action is required to mitigate this vulnerability, especially in environments where Craft CMS is used for critical applications or where it interfaces with industrial control systems (ICS).

The vulnerability can be exploited remotely without authentication, making it highly accessible to attackers. The SQL injection occurs through the GraphQL API endpoint, which is often used for querying and mutating data. An attacker can craft malicious queries to inject SQL commands, potentially leading to unauthorized access, data exfiltration, or system compromise. The lack of proper input validation and sanitization in the affected versions of Craft CMS allows for this attack vector.

Compensating controls AI-drafted, review before use

Implement strict input validation and sanitization for all GraphQL API endpoints. Use parameterized queries or prepared statements to prevent SQL injection. Consider deploying a Web Application Firewall (WAF) to monitor and block suspicious requests to the GraphQL endpoint.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2024-37843?

Craft CMS up to v3.7.31 contains a SQL injection vulnerability via the GraphQL API endpoint, which could allow an attacker to execute arbitrary SQL commands, leading to data theft, data manipulation, or system compromise. The vulnerability has a CVSS score of 9.8, indicating a critical severity level. A public proof of concept (PoC) is available, increasing the risk of exploitation. Immediate action is required to mitigate this vulnerability, especially in environments where Craft CMS is used fo

What is the CVSS score for CVE-2024-37843?

CVE-2024-37843 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 9.1%.

Is CVE-2024-37843 actively exploited?

No confirmed active exploitation of CVE-2024-37843 as of 2026-05-30.

How do I remediate CVE-2024-37843?

Priority: IMMEDIATE.

What systems are affected by CVE-2024-37843?

CVE-2024-37843 affects Craftcms Craft Cms.

What NERC-CIP standard applies to CVE-2024-37843?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2, which requires the implementation of security controls to protect against unauthorized access to critical cyber assets. The SQL injection vulnerability allows unauthorized access and manipulation of data, which could compromise the integrity and availability of critical systems.

What IEC 62443 requirement maps to CVE-2024-37843?

IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of secure coding practices to prevent common vulnerabilities such as SQL injection. The vulnerability in Craft CMS could allow an attacker to execute arbitrary SQL commands, compromising the security of the system and potentially affecting the safety and operation of connected ICS.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Craftcms","product":"Craft Cms","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.