---
title: "CVE-2024-37843: Craft CMS SQL injection vulnerability via the GraphQL API endpoint"
url: https://erroneo.us/security/cve/CVE-2024-37843/
description: "CVE-2024-37843 (craftcms/cms (Composer (PHP))): Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint."
type: vulnerability-record
section: "Security Digest"
date_published: 2024-06-25
date_modified: 2024-08-02
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-37843"
kev: false
cvss: 9.3
epss: 0.53242
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** High exploit likelihood. EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- 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.

## Affected packages

- Composer (PHP) `craftcms/cms` <= 3.7.31 → fixed: none listed

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- CISA-ADP CVSS 3.1: 7.5 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub CVSS 4.0: 9.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`

## Exploitation

- 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.

## Sources

- [GitHub Advisory GHSA-hq4f-mv3q-8wcv](https://github.com/advisories/GHSA-hq4f-mv3q-8wcv)
- [CVE.org record CVE-2024-37843](https://www.cve.org/CVERecord?id=CVE-2024-37843)
- [NVD entry CVE-2024-37843](https://nvd.nist.gov/vuln/detail/CVE-2024-37843)
- [blog.smithsecurity.biz](https://blog.smithsecurity.biz/craft-cms-unauthenticated-sqli-via-graphql)

---
Source page: https://erroneo.us/security/cve/CVE-2024-37843/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
