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

High 7.5 Published Updated

Attackers can execute arbitrary SQL commands via the GraphQL API in Craft CMS, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-37843?

CVE-2024-37843 is a high-severity SQL injection vulnerability in Craftcms Craft Cms, published on 25 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-89

Which versions are affected by CVE-2024-37843?

2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.

PackageAffectedFixed in
craftcms/cms PackagistAll versions to 3.7.31None
craftcms/cms PackagistAll versions to 3.7.31None

Products include Craftcms Craft Cms.

How do I fix CVE-2024-37843?

No fix has been published for CVE-2024-37843 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-37843 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37843 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-hq4f-mv3q-8wcv.

Is CVE-2024-37843 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free