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

Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Mon, 19 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title sqlparse through 0.6.0 PHP Code Injection via output_format='php'
First Time appeared Sqlparse Project
Sqlparse Project sqlparse
Weaknesses CWE-94
CPEs cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:*:*:*
Vendors & Products Sqlparse Project
Sqlparse Project sqlparse
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L'}

cvssV4_0

{'score': 8.4, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published: 2026-10-19T15:28:57.066Z

Updated: 2026-10-19T16:41:10.929Z

Reserved: 2026-10-19T14:14:28.728Z

Link: CVE-2026-112307

cve-icon Vulnrichment

Updated: 2026-10-19T16:41:01.827Z

cve-icon NVD

Status : Deferred

Published: 2026-10-19T16:17:06.727

Modified: 2026-10-19T17:17:15.780

Link: CVE-2026-112307

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-19T15:28:57Z

Links: CVE-2026-112307 - Bugzilla