Skip to main content
CVE-2026-59893VulnerabilityPublished Updated

sqlparse/keywords.py · Prior to 0.6.0, SQL_REGEX

Affects sqlparseSource GCVE Database

0
Compare
Authoritative record:CVE-2026-59893· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 0.2.4-0.1ubuntu0.1+esm1 : patch sqlparse soon.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.2.4-0.1ubuntu0.1+esm1, 0.2.4-3ubuntu0.1+esm1, 0.4.2-1ubuntu0.22.04.3 +2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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 24 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

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

Description

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

References

Community reviews

Loading reviews…