Code Injection in Sqlparse - CVE-2026-112307
Published: November 6, 2026
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
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
python2-sqlparse - update to 0.2.4-150100.6.17.1