{"id":"CVE-2026-112307","aliases":["CVE-2026-112307"],"related":[],"kind":"vulnerability","state":"published","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 OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-19T15:28:57.066Z","modified":"2026-11-10T21:18:24.160Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.6.0","status":"affected"}],"vendor":"andialbrecht","product":"sqlparse","repo":"https://github.com/andialbrecht/sqlparse","source":"cvelist"}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/pull/930","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/11/10/20","tags":[],"sources":["cvelist","nvd"]}],"credits":["xiehuanyi","Zachariah Mithani"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-19T16:40:54.543Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-112307","url":"https://www.cve.org/CVERecord?id=CVE-2026-112307","licence":"CVE Terms of Use","modified":"2026-11-10T21:05:22.545Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-112307","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112307","licence":"Public domain","modified":"2026-11-10T21:18:24.160Z"}],"updatedAt":"2026-11-25T22:59:45.522Z","epss":{"score":0.00198,"percentile":0.10004,"date":"2026-12-01T12:00:22.000Z"}}