#1154009 sqlparse: CVE-2026-112307

Package:
src:sqlparse
Source:
src:sqlparse
Submitter:
Salvatore Bonaccorso
Date:
2026-11-15 06:45:02 UTC
Severity:
normal
Tags:
#1154009#5
Date:
2026-11-15 06:42:06 UTC
From:
To:
Hi,

The following vulnerability was published for sqlparse.

CVE-2026-112307[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-112307
https://www.cve.org/CVERecord?id=CVE-2026-112307
[1] https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-xmww-55xg-h3vc

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore