Arbitrary Code Injection Affecting sqlparse package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-SQLPARSE-21248801
  • published19 Oct 2026
  • disclosed19 Oct 2026
  • creditxiehuanyi, Zachariah Mithani

Introduced: 19 Oct 2026

NewCVE-2026-112307  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for sqlparse.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via OutputPHPFilter when the output_format='php' option is used. An attacker can supply SQL text containing unescaped dollar signs, embedding ${expr} or {${expr}} sequences that OutputPHPFilter places inside double-quoted PHP strings, causing arbitrary PHP code to execute when the generated snippet is run.

References

CVSS Base Scores

version 4.0
version 3.1