Debian Package Tracker
Register | Log in
Subscribe

sqlparse

Choose email to subscribe with

general
  • source: sqlparse (main)
  • version: 0.5.5-2
  • maintainer: Debian Python Team (DMD)
  • uploaders: Andrii Senkovych (DMD)
  • arch: all
  • std-ver: 4.7.4
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 0.4.1-1
  • o-o-sec: 0.4.1-1+deb11u1
  • oldstable: 0.4.2-1+deb12u1
  • stable: 0.5.3-1
  • testing: 0.5.5-2
  • unstable: 0.5.5-2
versioned links
  • 0.4.1-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.4.1-1+deb11u1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.4.2-1+deb12u1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.5.3-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.5.5-2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • python-sqlparse-doc
  • python3-sqlparse
  • sqlformat (2 bugs: 0, 1, 1, 0)
action needed
A new upstream version is available: 0.6.1 high
A new upstream version 0.6.1 is available, you should consider packaging it.
Created: 2026-10-21 Last update: 2026-11-30 00:00
6 security issues in sid high

There are 6 open security issues in sid.

6 important issues:
  • CVE-2026-54284: 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.
  • CVE-2026-59893: 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.
  • CVE-2026-59894: 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, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
  • CVE-2026-71491: 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() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
  • CVE-2026-84305: sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.
  • CVE-2026-112307: sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
Created: 2026-08-17 Last update: 2026-11-27 11:02
6 security issues in forky high

There are 6 open security issues in forky.

6 important issues:
  • CVE-2026-54284: 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.
  • CVE-2026-59893: 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.
  • CVE-2026-59894: 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, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
  • CVE-2026-71491: 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() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
  • CVE-2026-84305: sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.
  • CVE-2026-112307: sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
Created: 2026-08-17 Last update: 2026-11-27 11:02
6 security issues in bookworm high

There are 6 open security issues in bookworm.

1 important issue:
  • CVE-2026-112307: sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
5 issues postponed or untriaged:
  • CVE-2026-54284: (postponed; to be fixed through a stable update) 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.
  • CVE-2026-59893: (postponed; to be fixed through a stable update) 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.
  • CVE-2026-59894: (postponed; to be fixed through a stable update) 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, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
  • CVE-2026-71491: (postponed; to be fixed through a stable update) 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() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
  • CVE-2026-84305: (postponed; to be fixed through a stable update) sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.
Created: 2026-10-20 Last update: 2026-11-27 11:02
4 security issues in bullseye high

There are 4 open security issues in bullseye.

4 important issues:
  • CVE-2026-54284: 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.
  • CVE-2026-59893: 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.
  • CVE-2026-59894: 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, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
  • CVE-2026-71491: 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() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
Created: 2026-08-17 Last update: 2026-08-27 11:00
6 low-priority security issues in trixie low

There are 6 open security issues in trixie.

6 issues left for the package maintainer to handle:
  • CVE-2026-54284: (needs triaging) 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.
  • CVE-2026-59893: (needs triaging) 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.
  • CVE-2026-59894: (needs triaging) 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, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
  • CVE-2026-71491: (needs triaging) 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() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
  • CVE-2026-84305: (needs triaging) sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.
  • CVE-2026-112307: (needs triaging) sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.

You can find information about how to handle these issues in the security team's documentation.

Created: 2026-08-17 Last update: 2026-11-27 11:02
news
[rss feed]
  • [2026-07-07] sqlparse 0.5.5-2 MIGRATED to testing (Debian testing watch)
  • [2026-07-05] Accepted sqlparse 0.5.5-2 (source) into unstable (Alexandre Detiste)
  • [2026-02-28] sqlparse 0.5.5-1 MIGRATED to testing (Debian testing watch)
  • [2026-02-25] Accepted sqlparse 0.5.5-1 (source) into unstable (Alexandre Detiste)
  • [2025-12-06] sqlparse 0.5.4-1 MIGRATED to testing (Debian testing watch)
  • [2025-12-01] Accepted sqlparse 0.5.4-1 (source) into unstable (Colin Watson)
  • [2025-01-03] Accepted sqlparse 0.4.2-1+deb12u1 (source) into proposed-updates (Debian FTP Masters) (signed by: Guilhem Moulin)
  • [2024-12-21] Accepted sqlparse 0.4.1-1+deb11u1 (source) into oldstable-security (Guilhem Moulin)
  • [2024-12-13] sqlparse 0.5.3-1 MIGRATED to testing (Debian testing watch)
  • [2024-12-10] Accepted sqlparse 0.5.3-1 (source) into unstable (Colin Watson)
  • [2024-11-20] sqlparse 0.5.2-1 MIGRATED to testing (Debian testing watch)
  • [2024-11-17] Accepted sqlparse 0.5.2-1 (source) into unstable (Colin Watson)
  • [2024-08-25] sqlparse 0.5.1-2 MIGRATED to testing (Debian testing watch)
  • [2024-08-22] Accepted sqlparse 0.5.1-2 (source) into unstable (Alexandre Detiste)
  • [2024-07-21] sqlparse 0.5.1-1 MIGRATED to testing (Debian testing watch)
  • [2024-07-19] Accepted sqlparse 0.5.1-1 (source) into unstable (Colin Watson)
  • [2024-05-23] sqlparse 0.5.0-1 MIGRATED to testing (Debian testing watch)
  • [2024-05-12] Accepted sqlparse 0.5.0-1 (source) into unstable (Colin Watson)
  • [2024-01-09] sqlparse 0.4.4-1 MIGRATED to testing (Debian testing watch)
  • [2024-01-06] Accepted sqlparse 0.4.4-1 (source) into unstable (Jérémy Lal)
  • [2023-05-16] Accepted sqlparse 0.2.4-1+deb10u1 (source) into oldstable (Guilhem Moulin)
  • [2021-12-04] sqlparse 0.4.2-1 MIGRATED to testing (Debian testing watch)
  • [2021-12-01] Accepted sqlparse 0.4.2-1 (source) into unstable (Michael R. Crusoe) (signed by: Michael Robin Crusoe)
  • [2021-01-27] sqlparse 0.4.1-1 MIGRATED to testing (Debian testing watch)
  • [2021-01-23] Accepted sqlparse 0.4.1-1 (source) into unstable (Michael R. Crusoe) (signed by: Michael Robin Crusoe)
  • [2020-05-01] sqlparse 0.3.1-1 MIGRATED to testing (Debian testing watch)
  • [2020-04-28] Accepted sqlparse 0.3.1-1 (source) into unstable (Andrii Senkovych) (signed by: Piotr Ożarowski)
  • [2020-01-21] sqlparse 0.2.4-3 MIGRATED to testing (Debian testing watch)
  • [2020-01-19] Accepted sqlparse 0.2.4-3 (source) into unstable (Sandro Tosi)
  • [2020-01-08] sqlparse 0.2.4-2 MIGRATED to testing (Debian testing watch)
  • 1
  • 2
bugs [bug history graph]
  • all: 6
  • RC: 0
  • I&N: 5
  • M&W: 1
  • F&P: 0
  • patch: 0
links
  • homepage
  • lintian
  • buildd: logs, reproducibility
  • popcon
  • browse source code
  • other distros
  • security tracker
  • debci
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 0.5.5-2ubuntu1
  • patches for 0.5.5-2ubuntu1

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing