Bug 2517515 (CVE-2026-59894) - CVE-2026-59894 sqlparse: sqlparse: Arbitrary code execution via unescaped backslashes in generated snippets
Summary: CVE-2026-59894 sqlparse: sqlparse: Arbitrary code execution via unescaped bac...
Keywords:
Status: NEW
Alias: CVE-2026-59894
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-17 17:27 UTC by OSIDB Bzimport
Modified: 2026-08-28 02:48 UTC (History)
58 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-17 17:27:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.