Security Digest · Vulnerability record

CVE-2024-37843: Craft CMS SQL injection vulnerability via the GraphQL API endpoint

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

CVSS 9.3 Critical EPSS 53.2% · p99

Should you act?

High exploit likelihood

EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 53.2%, percentile 99: FIRST’s model estimates a 53.2% chance of exploitation activity in the next 30 days, higher than 99% of all scored CVEs (very high). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes craftcms/cms (Composer (PHP)) <= 3.7.31, no fixed version listed. Check your lockfile, including transitive dependencies.

What it is

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

From the GitHub advisory

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

Weakness type: CWE-89.

Product: craftcms/cms (Composer (PHP)) · Assigned by: mitre · Published: 2024-06-25

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Composer (PHP)craftcms/cms<= 3.7.31none listed
VendorProductAffected versions (per CVE record)
n/an/asee vendor advisory

Severity scores

Scored byCVSSScoreVector
CISA-ADP3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub4.09.3 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: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable yes, technical impact partial.
  • FIRST EPSS (model of 2026-10-21): 53.24% probability of exploitation activity in the next 30 days; percentile 99.

Timeline

  • — CVE record published by mitre
  • — GitHub-reviewed advisory GHSA-hq4f-mv3q-8wcv published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-hq4f-mv3q-8wcv github.com
  2. CVE.org record CVE-2024-37843 cve.org
  3. NVD entry CVE-2024-37843 nvd.nist.gov

Other references from the CVE record and advisory

  1. blog.smithsecurity.biz blog.smithsecurity.biz

Critical Composer (PHP) advisories · Today’s Security Digest