Upstream information

CVE-2026-59894 at MITRE

Description

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.

SUSE information

Overall state of this security issue: Pending

This issue is currently rated as having moderate severity.

CVSS v3 Scores
CVSS detail SUSE
Base Score 5.5
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality Impact None
Integrity Impact None
Availability Impact High
CVSSv3 Version 3.1
CVSS v4 Scores
CVSS detail CNA (GitHub) SUSE
Base Score 6.2 6.2
Vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Local Local
Attack Complexity Low Low
Attack Requirements None None
Privileges Required None None
User Interaction Passive Passive
Vulnerable System Confidentiality Impact None None
Vulnerable System Integrity Impact None None
Vulnerable System Availability Impact None None
Subsequent System Confidentiality Impact High High
Subsequent System Integrity Impact High High
Subsequent System Availability Impact Low Low
CVSSv4 Version 4.0 4.0
SUSE Bugzilla entry: 1275460 [IN_PROGRESS]

No SUSE Security Announcements cross referenced.

List of released packages

Product(s) Fixed package version(s) References
openSUSE Tumbleweed
  • python313-sqlparse >= 0.6.0-1.1
  • python314-sqlparse >= 0.6.0-1.1
Patchnames:
openSUSE-Tumbleweed-2026-11557

List of packages in QA

Product(s) Package(s)
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Module for Basesystem 15 SP7
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server 15 SP7
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Desktop 15 SP7
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server for SAP Applications 15 SP7
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise High Performance Computing 15 SP7
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Module for Public Cloud 15 SP4
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Server 15 SP4
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise High Performance Computing 15 SP4
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Manager Server 4.3
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Manager Proxy 4.3
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Manager Retail Branch Server 4.3
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Module for Public Cloud 15 SP5
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Server 15 SP5
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise High Performance Computing 15 SP5
  • python311-sqlparse >= 0.4.4-150400.6.16.1
SUSE Linux Enterprise Module for Public Cloud 15 SP6
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server 15 SP6
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise High Performance Computing 15 SP6
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Module for Python 3 15 SP7
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server 15 SP7
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Desktop 15 SP7
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server for SAP Applications 15 SP7
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise High Performance Computing 15 SP7
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server 15 SP4-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server 15 SP4-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server 15 SP5-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server 15 SP5-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server 15 SP6-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server 15 SP6-LTSS
  • python3-sqlparse >= 0.4.2-150300.23.1
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • python3-sqlparse >= 0.4.2-150300.23.1
  • python311-sqlparse >= 0.4.4-150600.3.9.1
SUSE Manager Proxy LTS 4.3
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Manager Retail Branch Server LTS 4.3
  • python3-sqlparse >= 0.4.2-150300.23.1
SUSE Manager Server LTS 4.3
  • python3-sqlparse >= 0.4.2-150300.23.1


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP7 python-sqlparse In progress
SUSE Linux Enterprise Desktop 15 SP7 python3-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP7 python-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP7 python3-sqlparse In progress
SUSE Linux Enterprise Module for Basesystem 15 SP7 python3-sqlparse In progress
SUSE Linux Enterprise Module for Package Hub 15 SP7 python-sqlparse Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP7 python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP7 python3-sqlparse In progress
SUSE Linux Enterprise Server 16.0 python-sqlparse In progress
SUSE Linux Enterprise Server 16.1 python-sqlparse Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 python-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP7 python3-sqlparse In progress
SUSE Linux Enterprise Server for SAP applications 16.0 python-sqlparse In progress
SUSE Linux Enterprise Server for SAP applications 16.1 python-sqlparse Affected
openSUSE Leap 16.0 python-sqlparse Affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS python3-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP5 python-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP5 python3-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS python3-sqlparse In progress
SUSE Linux Enterprise Module for Basesystem 15 SP4 python3-sqlparse Affected
SUSE Linux Enterprise Module for Basesystem 15 SP5 python3-sqlparse Affected
SUSE Linux Enterprise Module for Basesystem 15 SP6 python3-sqlparse Affected
SUSE Linux Enterprise Module for Public Cloud 15 SP4 python-sqlparse In progress
SUSE Linux Enterprise Module for Public Cloud 15 SP5 python-sqlparse In progress
SUSE Linux Enterprise Module for Python 3 15 SP6 python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP4 python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP4 python3-sqlparse Affected
SUSE Linux Enterprise Server 15 SP4-LTSS python3-sqlparse In progress
SUSE Linux Enterprise Server 15 SP5 python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP5 python3-sqlparse Affected
SUSE Linux Enterprise Server 15 SP5-LTSS python3-sqlparse In progress
SUSE Linux Enterprise Server 15 SP6 python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP6 python3-sqlparse Affected
SUSE Linux Enterprise Server 15 SP6-LTSS python-sqlparse In progress
SUSE Linux Enterprise Server 15 SP6-LTSS python3-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP4 python-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP4 python3-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP5 python-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP5 python3-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP6 python-sqlparse In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP6 python3-sqlparse In progress
SUSE Manager Proxy 4.3 python-sqlparse In progress
SUSE Manager Proxy 4.3 python3-sqlparse Affected
SUSE Manager Proxy LTS 4.3 python3-sqlparse In progress
SUSE Manager Retail Branch Server 4.3 python-sqlparse In progress
SUSE Manager Retail Branch Server 4.3 python3-sqlparse Affected
SUSE Manager Retail Branch Server LTS 4.3 python3-sqlparse In progress
SUSE Manager Server 4.3 python-sqlparse In progress
SUSE Manager Server 4.3 python3-sqlparse Affected
SUSE Manager Server LTS 4.3 python3-sqlparse In progress
Products past their end of life and not receiving proactive updates anymore.
SUSE CaaS Platform 4.0 python-sqlparse Affected
SUSE Enterprise Storage 6 python-sqlparse Affected
SUSE Enterprise Storage 7 python-sqlparse Affected
SUSE Enterprise Storage 7.1 python3-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP4 python3-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP5 python3-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP6 python-sqlparse Affected
SUSE Linux Enterprise Desktop 15 SP6 python3-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS python-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS python3-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS python3-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP4 python-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP4 python3-sqlparse Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS python3-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS python3-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP6 python-sqlparse In progress
SUSE Linux Enterprise High Performance Computing 15 SP6 python3-sqlparse Affected
SUSE Linux Enterprise Module for Basesystem 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise Module for Basesystem 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP3 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP4 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 python-sqlparse Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 python-sqlparse Affected
SUSE Linux Enterprise Module for Public Cloud 15 SP6 python-sqlparse In progress
SUSE Linux Enterprise Real Time 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Real Time 15 SP3 python3-sqlparse Affected
SUSE Linux Enterprise Real Time 15 SP4 python3-sqlparse Affected
SUSE Linux Enterprise Server 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP1-BCL python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP1-LTSS python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP2-BCL python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP2-LTSS python-sqlparse Affected
SUSE Linux Enterprise Server 15 SP3-LTSS python3-sqlparse Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 python-sqlparse Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 python-sqlparse Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 python3-sqlparse Affected
SUSE Manager Proxy 4.0 python-sqlparse Affected
SUSE Manager Proxy 4.1 python-sqlparse Affected
SUSE Manager Proxy 4.2 python3-sqlparse Affected
SUSE Manager Retail Branch Server 4.0 python-sqlparse Affected
SUSE Manager Retail Branch Server 4.1 python-sqlparse Affected
SUSE Manager Retail Branch Server 4.2 python3-sqlparse Affected
SUSE Manager Server 4.0 python-sqlparse Affected
SUSE Manager Server 4.1 python-sqlparse Affected
SUSE Manager Server 4.2 python3-sqlparse Affected
openSUSE Leap 15.3 python-sqlparse Affected
openSUSE Leap 15.4 python3-sqlparse Affected
openSUSE Leap 15.5 python-sqlparse Affected
openSUSE Leap 15.5 python3-sqlparse Affected
openSUSE Leap 15.6 python-sqlparse Affected


SUSE Timeline for this CVE

CVE page created: Tue Aug 18 11:43:55 2026
CVE page last modified: Thu Aug 20 21:12:15 2026