Arbitrary Code Injection Affecting py3-sqlparse package, versions <0.6.1-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.2% (6th 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-WOLFILATEST-PY3SQLPARSE-22132890
  • published2 Nov 2026
  • disclosed19 Oct 2026

Introduced: 19 Oct 2026

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

How to fix?

Upgrade Wolfi py3-sqlparse to version 0.6.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-sqlparse package and not the py3-sqlparse package as distributed by Wolfi. See How to fix? for Wolfi 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