CVE-2026-46373 SQLFluff: Recursive Stack Overflow in Parser
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.
| Package | Affected | Fixed in |
|---|---|---|
sqlfluff PyPI | All versions | 4.1.0 |
sqlfluff PyPI | All versions | 4.1.0 |
sqlfluff PyPI | All versions | 4.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.
Other vulnerabilities in sqlfluff
Sources
Also known as DEBIAN-CVE-2026-46373, GHSA-wmhf-fqc8-vxhh, PYSEC-2026-209, UBUNTU-CVE-2026-46373.