{"id":"CVE-2026-112307","published":"2026-10-19T15:28:57Z","modified":"2026-11-10T21:05:22Z","title":"sqlparse through 0.6.0 PHP Code Injection via output_format='php'","vendor":"andialbrecht","product":"sqlparse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00144,"percentile":0.03755,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/pull/930","tags":["patch","issue-tracking"]},{"url":"https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php","tags":["third-party-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/11/10/20","tags":[]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":0.75},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"andialbrecht","affectedVersions":[{"vendor":"andialbrecht","product":"sqlparse","versions":["<= 0.6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-19T16:40:54.543031Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-104399","exploited":false,"provenance":"source"}}