Summary
This update for python3-sqlparse fixes the following issues:
- CVE-2026-54284: high algorithm complexity when parsing SQL payloads with hundreds of nesting levels can lead to denial
of service via excessive resource consumption (bsc#1275459).
- CVE-2026-59893: quadratic complexity when processing unmatched dollar-quoted literal and multiline-comment delimiters
can lead to denial of service (bsc#1275461).
- CVE-2026-59894: improper backlash escaping allows for injection of Python or PHP code via a crafted SQL input
(bsc#1275460).
- CVE-2026-71491: quadratic complexity in `group_comments` when processing comment-only statements can lead to denial
of services (bsc#1275466).
Fixed packages 11
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-ESPOS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-LTSS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-ESPOS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-LTSS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES 15 SP7 Linux Enterprise Module for Basesystem 15 SP7 | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES 15 SP4 Linux Enterprise Server 15 SP4-LTSS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES 15 SP5 Linux Enterprise Server 15 SP5-LTSS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES 15 SP6 Linux Enterprise Server 15 SP6-LTSS | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES for SAP 15 SP4 Linux Enterprise Server for SAP Applications 15 SP4 | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES for SAP 15 SP5 Linux Enterprise Server for SAP Applications 15 SP5 | python3-sqlparse | 0.4.2-150300.23.1 |
| SUSE · SLES for SAP 15 SP6 Linux Enterprise Server for SAP Applications 15 SP6 | python3-sqlparse | 0.4.2-150300.23.1 |
Vulnerabilities 4
-
High 8.7
sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger
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 consumpt…
-
High 8.7
sqlparse: Quadratic O(n²) DoS in group_comments
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(…
-
High 7.5
sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)
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…
-
Medium 6.2
sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py fails to escape existing backslashes before quotes in sqlparse.format output_format='python' and output_format='php' and the corresponding sqlformat -l modes…
References
-
report
https://bugzilla.suse.com/1275459
-
report
https://bugzilla.suse.com/1275460
-
report
https://bugzilla.suse.com/1275461
-
report
https://bugzilla.suse.com/1275466
-
web
https://www.suse.com/security/cve/CVE-2026-54284
-
web
https://www.suse.com/security/cve/CVE-2026-59893
-
web
https://www.suse.com/security/cve/CVE-2026-59894
-
web
https://www.suse.com/security/cve/CVE-2026-71491