# CVE-2026-112307: sqlparse through 0.6.0 PHP Code Injection via output_format='php'

- Severity: High 8.4 (CVSS:4.0, scored by 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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-10-19T15:28:57.066Z
- Modified: 2026-11-10T21:18:24.160Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- andialbrecht sqlparse: up to 0.6.0

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L`

## References

- <https://github.com/andialbrecht/sqlparse/pull/930> (issue-tracking, patch)
- <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)
- <http://www.openwall.com/lists/oss-security/2026/11/10/20>

## Sources

- CVE List: [CVE-2026-112307](https://www.cve.org/CVERecord?id=CVE-2026-112307), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-112307](https://nvd.nist.gov/vuln/detail/CVE-2026-112307), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-112307 · Whole record: https://cve.day/CVE-2026-112307.json · Rebuilt by cve.day 2026-11-25T22:59:45.522Z
