---
id: CVE-2026-46374
aliases:
  - GHSA-73jc-5mrq-prw7
  - PYSEC-2026-210
title: 'SQLFluff: Uncontrolled Resource Consumption in SQLFluff Parser'
summary: 'SQLFluff: Uncontrolled Resource Consumption in SQLFluff Parser'
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: sqlfluff
product: sqlfluff
ecosystem: pip
affected:
  - sqlfluff < 4.2.0
patched:
  - sqlfluff 4.2.0
published: '2026-05-19'
updated: '2026-07-06'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-73jc-5mrq-prw7'
references:
  - url: >-
      https://github.com/sqlfluff/sqlfluff/security/advisories/GHSA-73jc-5mrq-prw7
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-46374'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/sqlfluff/PYSEC-2026-210.yaml
  - url: 'https://github.com/sqlfluff/sqlfluff'
tags:
  - osv
  - pip
epss: 0.00263
epssPercentile: 0.18452
ingestedAt: '2026-07-08T18:25:46.747Z'
---

## Overview

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

## Affected packages

- `sqlfluff < 4.2.0`

## Remediation

Upgrade to a patched release:

- `sqlfluff 4.2.0`
