VDB
KO
HIGH 7.5

GHSA-73jc-5mrq-prw7

SQLFluff: Uncontrolled Resource Consumption in SQLFluff Parser

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / sqlfluff
Introduced in: 0 Fixed in: 4.2.0
Fix pip install --upgrade 'sqlfluff>=4.2.0'

References