GHSA-prg7-hcfm-mfcr: sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)
Summary
sqlparse has a ReDoS (regular expression denial of service) vulnerability in how it handles dollar-quoted SQL literals. The vulnerable regex pattern uses a backreference to match closing delimiters, but when closing delimiters don't exist, it scans the entire remaining input, causing O(n²) CPU complexity (meaning time grows quadratically with input size). An attacker can exploit this by sending specially crafted SQL text to any application using sqlparse, causing the application to consume excessive CPU and become unresponsive.
Vulnerability Details
EPSS: 0.0%
Yes
August 17, 2026
Classification
Affected Packages
Related Issues
CVE-2026-47482: NVIDIA Triton Inference Server for Linux contains a vulnerability where an attacker can cause missing release of memory
CVE-2022-29200: TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implem
Original source: https://github.com/advisories/GHSA-prg7-hcfm-mfcr
First tracked: August 17, 2026 at 02:00 PM
Classified by LLM (prompt v3) · confidence: 75%