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.
- CVSS
- 7.3High
- Chance of exploitation (EPSS)
- 0.14%
- Published
- Oct 19, 2026
- In the news
- Not yet
What to do
A serious code injection flaw in Andialbrecht Sqlparse that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Andialbrecht Sqlparse
- Through 0.6.0
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
Get alerts for these →Timeline 7
Latest change: Nessus plugin 388619: SUSE SLED15 / SLES15 Security Update : python-sqlparse (SUSE-SU-2026:5497-1) (Nov 28, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Sun, Nov 29, 2026
Wed, Nov 25, 2026
- DetectionNessus plugin 386398: RHEL 9 : Satellite 6.19 (RHSA-2026:103534)Tenable
- DetectionNessus plugin 386403: RHEL 9 : Satellite 6.17 (RHSA-2026:103536)Tenable
Thu, Nov 5, 2026
Mon, Nov 2, 2026
Mon, Oct 19, 2026
- CVECVE-2026-112307 published (CVSS 7.3)CVE Program · 16:17 UTC
References 4
- github.com /andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py
- github.com /andialbrecht/sqlparse/pull/930
- www.vulncheck.com /advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php
- www.openwall.com /lists/oss-security/2026/11/10/20