CVE-2024-37843 Craft CMS SQL injection vulnerability via the GraphQL API endpoint
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.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | All versions to 3.7.31 | None |
craftcms/cms Packagist | All versions to 3.7.31 | None |
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.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-hq4f-mv3q-8wcv.