Description
SQLFluff is a modular SQL linter and auto-formatter with support for multiple dialects and templated code. Prior to version 4.2.0, in deployments where untrusted users can provide SQL queries to be linted, an untrusted user can submit a malicious long query to any application using the parser to trigger a Denial of Service through resource exhaustion. This issue has been patched in version 4.2.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sqlfluff | sqlfluff | < 4.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sqlfluff | 4.3.0-1 | — |
| Debian 13 | sqlfluff | No fix yet | — |
| Debian 12 | sqlfluff | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | sqlfluff | No fix yet | — |
| Ubuntu 26.04 LTS | sqlfluff | No fix yet | — |
| Ubuntu 25.10 | sqlfluff | No fix yet | — |
| Ubuntu 24.04 LTS | sqlfluff | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | sqlfluff | < 4.2.0 | 4.2.0 | GHSA-73jc-5mrq-prw7 |