CVE Catalog

CVE-2026-112307

HighCVSS 7.3
Published: Updated: Translated: NVD NIST

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.

Risk Assessment

Arbitrary PHP code execution is possible in the context of an application processing untrusted SQL, potentially leading to server takeover and data leakage. The risk applies to systems using sqlparse to generate PHP code.

Recommendation

Update sqlparse to a version later than 0.6.0 if available, or avoid using OutputPHPFilter on untrusted input. Implement validation and escaping of SQL text before processing.

Other vulnerabilities in sqlparse

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS