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

EcosystemPackageFixed inAdvisory
Debian:12sqlparseno fix listedDEBIAN-CVE-2026-112307
Debian:13sqlparseno fix listedDEBIAN-CVE-2026-112307
Debian:14sqlparseno fix listedDEBIAN-CVE-2026-112307
Ubuntu:22.04:LTSsqlparseno fix listedUBUNTU-CVE-2026-112307
Ubuntu:24.04:LTSsqlparseno fix listedUBUNTU-CVE-2026-112307
Ubuntu:26.04:LTSsqlparseno fix listedUBUNTU-CVE-2026-112307
Ubuntu:26.10sqlparseno fix listedUBUNTU-CVE-2026-112307

Affected products (as reported)

VendorProductVersions
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