CVE-2026-71491

Publication date 17 August 2026

Last updated 24 September 2026


Ubuntu priority

Description

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.

Status

Package Ubuntu Release Status
sqlparse 26.04 LTS resolute
Fixed 0.5.4-1ubuntu0.1
24.04 LTS noble
Fixed 0.4.4-1ubuntu0.2
22.04 LTS jammy
Fixed 0.4.2-1ubuntu0.22.04.3
20.04 LTS focal
Fixed 0.2.4-3ubuntu0.1+esm1
18.04 LTS bionic
Fixed 0.2.4-0.1ubuntu0.1+esm1
16.04 LTS xenial
Fixed 0.1.18-1ubuntu0.1~esm1

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Severity score breakdown

CVSS version: CVSS v4.0

Base score 8.7 · High

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

Related Ubuntu Security Notices (USN)

    • USN-8808-1
    • SQL parse vulnerabilities
    • 23 September 2026

Other references


Access our resources on patching vulnerabilities