Vulnerability details
CVE-2026-112307
andialbrecht sqlparse
sqlparse through 0.6.0 PHP Code Injection via output_format='php'
CVSS 4.0
8.4High
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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 8.4High | 4.0 | CVEProject cvelistV5 (CNA) (VulnCheck) | 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 |
| 7.3High | 3.1 | CVEProject cvelistV5 (CNA) (VulnCheck) | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| andialbrecht | sqlparse | v ≤ 0.6.0 | CVEProject cvelistV5 (CNA) |
References and advisories
3- https://github.com/andialbrecht/sqlparse/pull/930 patchissue-tracking
- https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py technical-description
- https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php third-party-advisory
Kolun on Telegram @kolunsec
Exploited CVEs, key news and a daily digest
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2026-10-19
- Last updated
- 2026-10-19
- State
- Published
- Assigner (CNA)
- VulnCheck
Exploit prediction (EPSS)
0.14%
Probability of exploitation in 30 days
3.5%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- None
- Technical impact
- Total
Weaknesses (CWE)
- CWE-94Improper Control of Generation of Code ('Code Injection')