Bug 2517518 (CVE-2026-71491) - CVE-2026-71491 sqlparse: sqlparse: Denial of Service via quadratic CPU consumption in comment grouping
Summary: CVE-2026-71491 sqlparse: sqlparse: Denial of Service via quadratic CPU consum...
Keywords:
Status: NEW
Alias: CVE-2026-71491
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-17 17:40 UTC by OSIDB Bzimport
Modified: 2026-08-28 02:48 UTC (History)
58 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-17 17:40:22 UTC
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, group_comments in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard, causing quadratic CPU consumption through sqlparse.parse() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.


Note You need to log in before you can comment on or make changes to this bug.