Algorithmic Complexity Affecting python-sqlparse package, versions <0:0.6.0-1.el10ap


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.33% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-PYTHONSQLPARSE-20072162
  • published24 Sept 2026
  • disclosed17 Aug 2026

Introduced: 17 Aug 2026

CVE-2026-54284  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade RHEL:10 python-sqlparse to version 0:0.6.0-1.el10ap or higher.
This issue was patched in RHSA-2026:71113.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-sqlparse package and not the python-sqlparse package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split() before depth and token limits terminate processing. This issue is fixed in version 0.6.0.

CVSS Base Scores

version 3.1