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
Source GCVE Database
Not known to be exploited · CVSS 8.4 High.
Data as of 10 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.4 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.3 |
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| andialbrechtsqlparse | Affected
| Fixed in– |
PyPIsqlparsepkg:pypi/sqlparseOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-112307 (opens in a new tab)
- github.com/andialbrecht/sqlparse/pull/930 (opens in a new tab)
- github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py (opens in a new tab)
- vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php (opens in a new tab)
- openwall.com/lists/oss-security/2026/11/10/20 (opens in a new tab)