Skip to content
OpenAdvisories
High · 7.3 CVE-2026-112307 EUVD-2026-104399GHSA-457h-p88w-wq8p

sqlparse through 0.6.0 PHP Code Injection via output_format='php'

Published Oct 19, 2026 · Updated Nov 10, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
andialbrecht sqlparse ≤ 0.6.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sqlparse No fix yet —
Debian 13 sqlparse No fix yet —
Debian 12 sqlparse No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 sqlparse No fix yet —
Ubuntu 26.04 LTS sqlparse No fix yet —
Ubuntu 24.04 LTS sqlparse No fix yet —
Ubuntu 22.04 LTS sqlparse No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS sqlparse No fix yet —
Ubuntu Pro 18.04 LTS sqlparse No fix yet —
Ubuntu Pro 16.04 LTS sqlparse No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 python-sqlparse 0.2.4-150100.6.17.1 SUSE-SU-2026:5042-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-sqlparse 0.6.0-2.1 openSUSE-SU-2026:12382-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-sqlparse +5 0.6.1-r0 —

Advisories 2

References