Arbitrary Code Injection Affecting python2-sqlparse package, versions <0.2.4-150100.6.17.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

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 IDSNYK-SLES157-PYTHON2SQLPARSE-22192741
  • published4 Nov 2026
  • disclosed2 Nov 2026

Introduced: 2 Nov 2026

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

How to fix?

Upgrade SLES:15.7 python2-sqlparse to version 0.2.4-150100.6.17.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python2-sqlparse package and not the python2-sqlparse package as distributed by SLES. See How to fix? for SLES:15.7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1