CVE-2026-112307

sqlparse through 0.6.0 PHP Code Injection via output_format='php'

Published Oct 19, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 10, 2026, 9:05 PM
Reserved
Oct 19, 2026, 2:14 PM
Status
Deferred
Published
Oct 19, 2026, 4:17 PM
Modified
Nov 10, 2026, 9:18 PM
Severity
Important
Public date
Oct 19, 2026, 3:28 PM