CVE-2026-112307
sqlparse through 0.6.0 contains a PHP code injection vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py
- github.com/andialbrecht/sqlparse/pull/930
- www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-p
- www.openwall.com/lists/oss-security/2026/11/10/20
- nvd.nist.gov/vuln/detail/CVE-2026-112307
- cve.org/CVERecord?id=CVE-2026-112307
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.