{"id":"CVE-2026-112307","title":"sqlparse through 0.6.0 PHP Code Injection via output_format='php'","summary":"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 OutputPHP…","severity":"high","cvss":7.3,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","cvssSource":"cna","cwe":["CWE-94"],"vendor":"andialbrecht","product":"sqlparse","affected":["sqlparse <= 0.6.0"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-19T16:40:54.543031Z"},"published":"2026-10-19","updated":"2026-10-19","sourceUpdated":"2026-10-19T16:41:10.929Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112307","references":[{"url":"https://github.com/andialbrecht/sqlparse/pull/930"},{"url":"https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py"},{"url":"https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php","label":"VulnCheck Advisory: sqlparse through 0.6.0 PHP Code Injection via output_format='php'"}],"tags":["cve.org"],"ingestedAt":"2026-10-19T16:32:30.082Z","slug":"CVE-2026-112307","body":"## Overview\n\nsqlparse 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.\n\n## Affected\n\n- `sqlparse <= 0.6.0`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":40,"depthScoreParts":{"impact":40.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}