Advisory

GHSA-wmhf-fqc8-vxhh

Also known as: CVE-2026-46373, PYSEC-2026-209

Summary

SQLFluff: Recursive Stack Overflow in Parser

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-19 20:10 UTC
Modified
2026-07-06 23:00 UTC

Affected packages and fixes

sqlfluff

PyPI · All systems

Affected

  • introduced 0, fixed 4.1.0 (ecosystem)

Fixed versions

4.1.0

Fix

  • Fixed version 4.1.0
    pip install --upgrade sqlfluff==4.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences