Vulnerability · Published Oct 19, 2026 · Assigned by VulnCheck
CVE-2026-112307sqlparse through 0.6.0 PHP Code Injection via output_format='php'
High 7.3
In plain English
A high-severity code injection in sqlparse from andialbrecht. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities).
Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.1%top 96.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | sqlparse | no fix listed | DEBIAN-CVE-2026-112307 |
| Debian:13 | sqlparse | no fix listed | DEBIAN-CVE-2026-112307 |
| Debian:14 | sqlparse | no fix listed | DEBIAN-CVE-2026-112307 |
| Ubuntu:22.04:LTS | sqlparse | no fix listed | UBUNTU-CVE-2026-112307 |
| Ubuntu:24.04:LTS | sqlparse | no fix listed | UBUNTU-CVE-2026-112307 |
| Ubuntu:26.04:LTS | sqlparse | no fix listed | UBUNTU-CVE-2026-112307 |
| Ubuntu:26.10 | sqlparse | no fix listed | UBUNTU-CVE-2026-112307 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| andialbrecht | sqlparse | 0 – through 0.6.0 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
References
- https://github.com/andialbrecht/sqlparse/pull/930 patch, issue-tracking
- https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py technical-description
- VulnCheck Advisory: sqlparse through 0.6.0 PHP Code Injection via output_format='php' third-party-advisory