Skip to main content
CVE-2026-71491VulnerabilityPublished Updated

sqlparse/engine/grouping.py repeatedly rescans comment-only statements · Prior to 0.6.0, group_comments

Affects sqlparseSource GCVE Database

0
Compare
Authoritative record:CVE-2026-71491· High 8.7

Not known to be exploited · CVSS 8.7 High · fixed in 0.1.18-1ubuntu0.1~esm1 : patch sqlparse soon.

Data as of 24 Nov 2026, 21:07 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.1.18-1ubuntu0.1~esm1, 0.2.4-0.1ubuntu0.1+esm1, 0.2.4-3ubuntu0.1+esm1 +3
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=resoluteOther threatsAffected
  • <0.5.4-1ubuntu0.1
Fixed in
  • 0.5.4-1ubuntu0.1
Ubuntu 24.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=nobleOther threatsAffected
  • <0.4.4-1ubuntu0.2
Fixed in
  • 0.4.4-1ubuntu0.2
Ubuntu 22.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=jammyOther threatsAffected
  • <0.4.2-1ubuntu0.22.04.3
Fixed in
  • 0.4.2-1ubuntu0.22.04.3
Ubuntu Pro 20.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=esm-infra/focalOther threatsAffected
  • <0.2.4-3ubuntu0.1+esm1
Fixed in
  • 0.2.4-3ubuntu0.1+esm1
Ubuntu Pro 18.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <0.2.4-0.1ubuntu0.1+esm1
Fixed in
  • 0.2.4-0.1ubuntu0.1+esm1
Ubuntu Pro 16.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • <0.1.18-1ubuntu0.1~esm1
Fixed in
  • 0.1.18-1ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Update sqlparse to version 0.6.0 or later. For Ubuntu users, apply the security updates provided in the following package versions: 0.1.18-1ubuntu0.1~esm1, 0.2.4-0.1ubuntu0.1+esm1, 0.2.4-3ubuntu0.1+esm1, 0.4.2-1ubuntu0.22.04.3, 0.4.4-1ubuntu0.2, or 0.5.4-1ubuntu0.1. Standard system updates will apply these fixes. Ubuntu Pro users can obtain fixes via the Ubuntu Pro service. No additional mitigations are required once patched.

Description

A vulnerability in sqlparse prior to version 0.6.0 causes repeated rescanning of comment-only SQL statements, leading to quadratic CPU consumption. This flaw results from algorithmic complexity issues in parsing comments, deeply nested parentheses, and dollar-quoted string literals. The issue can cause denial of service by exhausting CPU resources. It is fixed in version 0.6.0 and later.

References

Community reviews

Loading reviews…