CVE-2026-46373 SQLFluff: Recursive Stack Overflow in Parser

High 7.5 Published Updated

An attacker can cause a denial of service in applications using SQLFluff by submitting SQL queries with excessive nesting, triggering a stack overflow.

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-46373?

CVE-2026-46373 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.1.0, in deployments where untrusted users can provide SQL queries to be linted, an untrusted user can submit a malicious query with deliberate excessive nesting to any application using the parser to trigger a Denial of Service through resource exhaustion. This issue has been patched in version 4.1.0.

Weakness: CWE-674

Which versions are affected by CVE-2026-46373?

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

PackageAffectedFixed in
sqlfluff PyPIAll versions4.1.0
sqlfluff PyPIAll versions4.1.0
sqlfluff PyPIAll versions4.1.0

Products include Sqlfluff Sqlfluff.

How do I fix CVE-2026-46373?

Upgrade sqlfluff to 4.1.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-46373 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-46373, GHSA-wmhf-fqc8-vxhh, PYSEC-2026-209, UBUNTU-CVE-2026-46373.

Is CVE-2026-46373 in your software?

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

Check your SBOMs for free