CVE-2026-112307
sqlparse through 0.6.0 PHP Code Injection via output_format='php'
- State
- Published
- Severity
- 8.4 High
- Published
- Oct 19, 2026
- Updated
- Oct 19, 2026
- Reserved
- Oct 19, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.4 High | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 7.3 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
sqlparseandialbrecht |
|
References
- https://github.com/andialbrecht/sqlparse/pull/930patchissue-tracking
- https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.pytechnical-description
- VulnCheck Advisory: sqlparse through 0.6.0 PHP Code Injection via output_format='php'third-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.