Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-59893: sqlparse is a non-validating SQL parser module for Python

41
This month
HIGH 7.5REMOTE

CVE-2026-59893 is a high-severity flaw (CVSS 7.5) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • High severity
  • CISA SSVC: public proof of concept
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.3% (top 74%)
CISA exploited listNo
WeaknessCWE-1333
Published2026-08-17
Last modified2026-10-23
Publisher (CNA): GitHub, Inc.

Share: LinkedIn · X · Reddit

Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Exact fixes by distribution

Python (pip) · sqlparse · FIXED · 0.6.0 · vulnerable: <= 0.5.6.dev0 · source
pip install --upgrade "sqlparse>=0.6.0" pip show sqlparse
Fedora 46 · kwin-zones · FIXED · 1.0.13-1.fc46 · FEDORA-2026-95888f332b · source
sudo dnf upgrade --advisory=FEDORA-2026-95888f332b
Fedora ELN · nginx-mod-brotli · FIXED · 1.0.0~rc-16.eln159 · FEDORA-2026-501a6a8273 · source
sudo dnf upgrade --advisory=FEDORA-2026-501a6a8273
Ubuntu 20.04 · sqlparse · FIXED · 0.2.4-3ubuntu0.1+esm1
sudo apt update && sudo apt install --only-upgrade sqlparse dpkg --compare-versions "$(dpkg-query -W -f='${Version}' sqlparse)" ge "0.2.4-3ubuntu0.1+esm1" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 22.04 · sqlparse · FIXED · 0.4.2-1ubuntu0.22.04.3
sudo apt update && sudo apt install --only-upgrade sqlparse dpkg --compare-versions "$(dpkg-query -W -f='${Version}' sqlparse)" ge "0.4.2-1ubuntu0.22.04.3" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.04 · sqlparse · FIXED · 0.4.4-1ubuntu0.2
sudo apt update && sudo apt install --only-upgrade sqlparse dpkg --compare-versions "$(dpkg-query -W -f='${Version}' sqlparse)" ge "0.4.4-1ubuntu0.2" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · sqlparse · NO FIX YET
Debian 13 · sqlparse · NO FIX YET

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-59893?

No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.

Is CVE-2026-59893 being exploited?

CVE-2026-59893 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-59893 affect?

CVE-2026-59893 affects affected software. Severity is high (CVSS 7.5). 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, ca

How urgent is CVE-2026-59893?

Priority 41/100. High severity; CISA SSVC: public proof of concept; Remotely exploitable, no login, no user action

Software pages

Python vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.