SQLFluff: Recursive Stack Overflow in Parser (CVE-2026-46373)
### Impact 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. ### Patches Versions 4.1.0 and up contain a configurable recursion limit, which is enabled by default, to prevent this manner of exploit. ### Credit Ori Nakar from Imperva Threat Research Team.
AI Analysis
Technical Summary
The vulnerability in SQLFluff is a recursive stack overflow in its SQL parser, identified as CVE-2026-46373. It occurs when untrusted users submit SQL queries with excessive nesting, causing the parser to exhaust resources and crash, resulting in denial of service. This affects deployments where untrusted input is linted. The issue is addressed starting with version 4.1.0 by introducing a configurable recursion limit that prevents such resource exhaustion.
Potential Impact
An attacker able to submit SQL queries to the SQLFluff parser can trigger a denial of service condition by exploiting recursive stack overflow through deeply nested queries. This leads to resource exhaustion and application unavailability. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade to SQLFluff version 4.1.0 or later, which includes a default-enabled configurable recursion limit to prevent recursive stack overflow. No additional mitigation is required if running a patched version.
SQLFluff: Recursive Stack Overflow in Parser (CVE-2026-46373)
Description
### Impact 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. ### Patches Versions 4.1.0 and up contain a configurable recursion limit, which is enabled by default, to prevent this manner of exploit. ### Credit Ori Nakar from Imperva Threat Research Team.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in SQLFluff is a recursive stack overflow in its SQL parser, identified as CVE-2026-46373. It occurs when untrusted users submit SQL queries with excessive nesting, causing the parser to exhaust resources and crash, resulting in denial of service. This affects deployments where untrusted input is linted. The issue is addressed starting with version 4.1.0 by introducing a configurable recursion limit that prevents such resource exhaustion.
Potential Impact
An attacker able to submit SQL queries to the SQLFluff parser can trigger a denial of service condition by exploiting recursive stack overflow through deeply nested queries. This leads to resource exhaustion and application unavailability. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade to SQLFluff version 4.1.0 or later, which includes a default-enabled configurable recursion limit to prevent recursive stack overflow. No additional mitigation is required if running a patched version.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wmhf-fqc8-vxhh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-46373"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4c539827e9c79719a3b19b
Added to database: 07/07/2026, 01:17:12 UTC
Last enriched: 07/07/2026, 01:21:17 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.