CVE-2026-112307

NameCVE-2026-112307
Descriptionsqlparse 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1154009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
sqlparse (PTS)bookworm0.4.2-1+deb12u1vulnerable
trixie0.5.3-1vulnerable
forky, sid0.5.5-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sqlparsesource(unstable)(unfixed)1154009

Notes

[trixie] - sqlparse <no-dsa> (Minor issue)
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-xmww-55xg-h3vc

Search for package or bug name: Reporting problems