CVE-2024-37843

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

High · published June 25, 2024

Patch now

High probability of exploitation

CVSS calls it high at 7.5. It sits in the 99.0th percentile for exploit probability.

CVSS v3.1
7.5
EPSS
53%
Percentile
99.0
In the wild
Unconfirmed
What it is

⚡ A sneaky SQL injection vulnerability lurking in Craft CMS's GraphQL API could let attackers manipulate your database with just a crafted query! 🔥 Think of it like a restaurant where customers can order anything they want without a menu. If a diner yells out their demands, the kitchen has to serve, potentially concocting some disastrous dishes instead of the ones intended! An attacker could exploit this vulnerability to execute malicious SQL queries, allowing them to modify, retrieve, or even delete sensitive data in your database. This could lead to data breaches, data loss, and a catastrophic mess that impacts your users and reputation.

Put simply

Think of it like a restaurant where customers can order anything they want without a menu. If a diner yells out their demands, the kitchen has to serve, potentially concocting some disastrous dishes instead of the ones intended! The SQL injection vulnerability allows attackers to inject arbitrary SQL commands through the GraphQL API endpoint, compromising the integrity of the database without proper validation or sanitization of the input.

What to do

An attacker could exploit this vulnerability to execute malicious SQL queries, allowing them to modify, retrieve, or even delete sensitive data in your database. This could lead to data breaches, data loss, and a catastrophic mess that impacts your users and reputation. To protect yourself, upgrade Craft CMS to version 3.7.32 or later immediately. Additionally, review your GraphQL API configurations and implement parameterized queries to strengthen your defenses against future SQL injections. You've got this! By following these steps, you'll keep your database safe and sound. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.53242 · 99.0th percentile
Published
2024-06-25T00:00Z
EPSS history
Timeline
  • 25 JUN 00:00Z
    Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint
    cvelistv5