CVE-2026-46374
SQLFluff: Uncontrolled Resource Consumption in Parser
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
SQLFluff: Uncontrolled Resource Consumption in Parser
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.
- Record
CVE-2026-46374- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2026-35855
7.5
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.
- Record
EUVD-2026-35855- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-73jc-5mrq-prw7
7.5
SQLFluff: Uncontrolled Resource Consumption in SQLFluff Parser
Impact
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.
Patches
Versions 4.2.0 and up contain a configurable parse node limit, which is enabled by default, to prevent this manner of exploit.
Credit
Ori Nakar from Imperva Threat Research Team.
- Record
GHSA-73jc-5mrq-prw7- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2026-46374- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSV
7.5
SQLFluff: Uncontrolled Resource Consumption in Parser
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.
- Record
CVE-2026-46374- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-46374
7.5
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.
- Record
DEBIAN-CVE-2026-46374- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-73jc-5mrq-prw7
7.5
SQLFluff: Uncontrolled Resource Consumption in SQLFluff Parser
Impact
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.
Patches
Versions 4.2.0 and up contain a configurable parse node limit, which is enabled by default, to prevent this manner of exploit.
Credit
Ori Nakar from Imperva Threat Research Team.
- Record
GHSA-73jc-5mrq-prw7- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVPYSEC-2026-210
7.5
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.
- Record
PYSEC-2026-210- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-46374
7.5
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.
- Record
UBUNTU-CVE-2026-46374- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2026-46374 No score
CVE-2026-46374 in sqlfluff - Patched by Root
Root has patched CVE-2026-46374 in the sqlfluff package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2026-46374- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sqlfluffPyPI |
before 4.2.0 | 4.2.0 |
sqlfluffDebian:12 |
All versions, plus listed versions 1.4.5-22.3.5-13.2.5-13.2.5-23.3.0-1 Show 7 moreShow less3.3.1-13.4.2-13.4.2-23.5.0-13.5.0-24.3.0-14.3.0-2 |
None known |
sqlfluffDebian:13 |
All versions, plus listed versions 3.3.1-13.4.2-13.4.2-23.5.0-13.5.0-24.3.0-14.3.0-2 |
None known |
sqlfluffDebian:14 |
before 4.3.0-1, plus listed versions 3.3.1-13.4.2-13.4.2-23.5.0-13.5.0-2 |
4.3.0-1 |
sqlfluffPyPI |
before 4.2.0, plus listed versions 0.0.10.0.20.0.30.0.40.0.5 Show 45 moreShow less0.0.60.0.70.0.90.1.00.1.10.1.20.1.30.1.40.1.50.10.00.10.10.11.00.11.10.11.20.12.00.13.00.13.10.13.20.2.00.2.10.2.20.2.30.2.40.3.00.3.10.3.20.3.2.post10.3.2.post20.3.30.3.40.3.50.3.60.4.00.4.0a10.4.0a20.4.0a30.4.10.5.00.5.10.5.20.5.30.5.40.5.50.5.60.6.0 |
4.2.0 |
sqlfluffRoot:PyPI |
before 4.1.0+aikido.1 | 4.1.0+aikido.1 |
sqlfluffUbuntu:24.04:LTS |
All versions, plus listed versions 1.4.5-22.3.5-1 |
None known |
sqlfluffUbuntu:25.10 |
All versions, plus listed versions 3.3.1-1 |
None known |
sqlfluffUbuntu:26.10 |
All versions, plus listed versions 3.5.0-2 |
None known |
sqlfluffUbuntu:26.04:LTS |
All versions, plus listed versions 3.3.1-13.4.2-23.5.0-13.5.0-1ubuntu13.5.0-2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-46374 is a high vulnerability (CVSS 7.5) in Sqlfluff, published May 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 18th percentile. Fixed in sqlfluff 4.2.0.
References
github.com/sqlfluff/sqlfluff/security/advisories/GHSA-73jc-5mrq-prw7
nvd.nist.gov/vuln/detail/CVE-2026-46374
github.com/pypa/advisory-database/tree/main/vulns/sqlfluff/PYSEC-2026-210.yaml
github.com/advisories/GHSA-73jc-5mrq-prw7
github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46374.json
security-tracker.debian.org/tracker/CVE-2026-46374
github.com/sqlfluff/sqlfluff
ubuntu.com/security/CVE-2026-46374
cve.org/CVERecord?id=CVE-2026-46374
Left out here: 103 versions. The JSON record has them.