{"id":"CVE-2026-112307","summary":"sqlparse through 0.6.0 PHP Code Injection via output_format='php'","details":"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.","modified":"2026-10-20T02:45:29.100185904Z","published":"2026-10-19T15:28:57.066Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112307.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112307.json"},{"type":"PACKAGE","url":"https://github.com/andialbrecht/sqlparse"},{"type":"ARTICLE","url":"https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/pull/930"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112307"},{"type":"WEB","url":"https://pypi.org"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/andialbrecht/sqlparse","events":[{"introduced":"0"},{"last_affected":"2f40da99b50d81135aecf96f6b08fcfa338a96de"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.6.0"}],"source":"AFFECTED_FIELD"}}],"versions":["0.6.0","0.5.5","0.5.4","0.5.3","0.5.2","0.5.1","0.5.0","0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","0.3.1","0.3.0","0.2.4","0.2.3","0.2.2","0.2.1","0.2.0","0.1.18","0.1.17","0.1.16","0.1.15","0.1.14","0.1.13","0.1.12","0.1.11","0.1.10","0.1.9","0.1.8","0.1.7","0.1.6","0.1.5","0.1.3","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112307.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}