Skip to content
CVE PROGRAM SOURCE RECORD8.4 High

CVE-2026-112307

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

andialbrecht sqlparse

Default version status: unaffected

  • 0 to ≤ 0.6.0affected
pkg:pypi/sqlparse

References