CVE-2026-46374 SQLFluff: Uncontrolled Resource Consumption in Parser

High 7.5 Published Updated

An attacker can cause denial of service by submitting malicious long SQL queries to applications using the SQLFluff parser.

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

What is CVE-2026-46374?

CVE-2026-46374 is a high-severity denial of service vulnerability in sqlfluff, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

SQLFluff is a modular SQL linter and auto-formatter with support for multiple dialects and templated code. Prior to version 4.2.0, in deployments where untrusted users can provide SQL queries to be linted, an untrusted user can submit a malicious long query to any application using the parser to trigger a Denial of Service through resource exhaustion. This issue has been patched in version 4.2.0.

Weakness: CWE-400

Which versions are affected by CVE-2026-46374?

3 open source packages ship an affected version, including sqlfluff. It affects 1 product.

PackageAffectedFixed in
sqlfluff PyPIAll versions4.2.0
sqlfluff PyPIAll versions4.2.0
sqlfluff PyPIAll versions4.2.0

Products include Sqlfluff Sqlfluff.

How do I fix CVE-2026-46374?

Upgrade sqlfluff to 4.2.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-46374 being exploited?

There is no known exploitation of CVE-2026-46374 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-46374, GHSA-73jc-5mrq-prw7, PYSEC-2026-210, ROOT-APP-PYPI-CVE-2026-46374, UBUNTU-CVE-2026-46374.

Is CVE-2026-46374 in your software?

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

Check your SBOMs for free