DEBIAN-CVE-2026-59894

Source
https://security-tracker.debian.org/tracker/CVE-2026-59894
Import Source
https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-59894.json
JSON Data
https://api.test.osv.dev/v1/vulns/DEBIAN-CVE-2026-59894
Upstream
Published
2026-08-17T18:17:35Z
Modified
2026-09-01T16:05:48Z
Severity
  • 6.2 (Medium) CVSS_V4 - 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 Calculator
Summary
[none]
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.

References

Affected packages

Debian:12 / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/debian/sqlparse?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.4.2-1
0.4.2-1+deb12u1
0.4.4-1
0.5.0-1
0.5.1-1
0.5.1-2
0.5.2-1
0.5.3-1
0.5.4-1
0.5.5-1
0.5.5-2

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-59894.json"

Debian:13 / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/debian/sqlparse?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.5.3-1
0.5.4-1
0.5.5-1
0.5.5-2

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-59894.json"

Debian:14 / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/debian/sqlparse?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.5.3-1
0.5.4-1
0.5.5-1
0.5.5-2

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-59894.json"