SUSE VEX
SUSEVEX-CVE-2026-59894
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| SUSE:Linux Enterprise High Performance Computing 15 SP1 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP1 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP2 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP2 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP3 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP1 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP1 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP2 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP2 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP3 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | python-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | python3-sqlparse | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | python3-sqlparse | All versions, no fix yet |
References
- https://www.suse.com/security/cve/CVE-2026-59894
- https://www.suse.com/support/security/rating/
- https://bugzilla.suse.com/1275460
- https://lists.suse.com/pipermail/sle-updates/2026-August/049503.html
- https://lists.suse.com/pipermail/sle-security-updates/2026-September/028734.html
- https://lists.suse.com/pipermail/sle-security-updates/2026-September/028733.html
- https://lists.suse.com/pipermail/sle-security-updates/2026-September/028731.html