8.4

CVE-2026-112307: sqlparse through 0.6.0 PHP Code Injection via output_format='php'

Deferred
AliasesDEBIAN-CVE-2026-112307UBUNTU-CVE-2026-112307CGA-hpjw-w5qw-8376
Published 19-10-2026Last modified 10-11-2026

Vulnerability summary

CVE-2026-112307 is a high (CVSS 8.4) Improper Control of Generation of Code vulnerability in andialbrecht sqlparse. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.4/10
010
High · v4.0 (CVE.org)
EPSS score
0.20%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4

Timeline

  1. 19-10-2026
    PublishedVulnerability first disclosed.
  2. 10-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 6 sources · 2 versions

EPSS trend

Probability

0.20%

Chance of exploitation in the next 30 days

Percentile

10%

Versus all other CVEs

30-day change

Increase +0.06 pp

From 0.14% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Suse7 products
  • python-sqlparse&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 0.2.4-150100.6.17.1
  • python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 0.4.4-150400.6.22.1
  • python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 0.4.4-150400.6.22.1
  • python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP6< 0.4.4-150600.3.15.1
  • python-sqlparse&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 0.4.4-150600.3.15.1
Chainguard6 products
  • py3-sqlparse< 0.6.1-r0
  • py3.10-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.11-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.12-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.13-sqlparse< 0.6.1-r0
Wolfi6 products
  • py3-sqlparse< 0.6.1-r0
  • py3.10-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.11-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.12-sqlparseAll versions (No fix recorded) | < 0.6.1-r0
  • py3.13-sqlparse< 0.6.1-r0
Andialbrecht1 product
Debian1 product
  • sqlparseAll versions (No fix recorded)
Mageia1 product
  • python-sqlparse< 0.6.1-1.mga10
Opensuse1 product
  • python-sqlparse&distro=openSUSE Tumbleweed< 0.6.0-2.1
Ubuntu1 product
  • sqlparseAll versions (No fix recorded)

8 vendors · 24 products

References

23 links
Show all 23 references