Vulnerability 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 Score
HIGH
Related Weaknesses (CWE)
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-v
- http://www.openwall.com/lists/oss-security/2026/11/10/20
FAQ
What is CVE-2026-112307?
CVE-2026-112307 is a vulnerability with a CVSS score of 7.3 (HIGH). 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} ...
How severe is CVE-2026-112307?
CVE-2026-112307 has been rated HIGH with a CVSS base score of 7.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-112307?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.