RCE in Andialbrecht Sqlparse
CVE-2026-112307
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/andialbrecht/sqlparse/pull/930 (issue-tracking, patch)
- github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py (technical-description)
- www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-outp… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-112307?
- CVE-2026-112307 is a high-severity vulnerability in Andialbrecht Sqlparse, classified under Code Injection. CVSS score: 7.3/10. Published 2026-10-19.
- How severe is CVE-2026-112307?
- High severity. CVSS v3 base score is 7.3 out of 10.