cvelo
P2 · HighCVSS 7.3EPSS 0.2%

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

  • CVE-2026-112307
  • GHSA-457h-p88w-wq8p
  • EUVD-2026-104399

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • andialbrecht sqlparse

    Affected versionsFixed in
    up to 0.6.0none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.