What’s Vulnerable › Vulnerabilities
CVE-2026-112307: sqlparse through 0.6.0 PHP Code Injection via output_format='php'
- Severity: high (CVSS 7.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-19 · updated 2026-10-19
- Weakness: CWE-94
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
- andialbrecht sqlparse: through 0.6.0
References
- https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py
- https://github.com/andialbrecht/sqlparse/pull/930
- https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php
Get alerted when CVE-2026-112307 or the next vulnerability affects your stack