Code Injection in Sqlparse - CVE-2026-112307

 

Code Injection in Sqlparse - CVE-2026-112307

Published: November 6, 2026


Vulnerability identifier: #VU159750
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112307
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated local attacker to execute arbitrary commands with the permissions of the PHP process.

The vulnerability exists due to missing dollar-sign escaping in Sqlparse's PHP output filter when attacker-controlled SQL is embedded in generated double-quoted PHP strings. An unauthenticated local attacker can supply SQL containing PHP interpolation expressions that execute when a victim subsequently runs the generated PHP snippet, rather than during formatting alone.


Affected software

Sqlparse
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Package Hub 15
python2-sqlparse

How to mitigate CVE-2026-112307

Install security update from vendor's website.

Sqlparse - update to 0.6.1
python2-sqlparse - update to 0.2.4-150100.6.17.1

External References

Related Security Bulletins