Skip to main content
VulnerabilityPublished Updated

CVE-2026-112307: andialbrecht sqlparse · Code Injection

Affects andialbrecht sqlparseSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.4 High.

Data as of 2 Dec 2026, 18:36 UTC

CVSS 4.0 base score
8.4High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.08.4
CNA (VulnCheck)CVSS 3.17.3
CNACVSS 4.08.4
EPSS
0.1% chance of exploitation in 30 days – higher than 9% 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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 3 Dec 2026.

What to do

Affected software

ProductAffectedFixed in
andialbrechtsqlparseAffected
  • <=0.6.0
Fixed in–
PyPIsqlparsepkg:pypi/sqlparseOther threatsAffected
  • <=0.6.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is available, avoid processing untrusted SQL input with sqlparse or sanitize inputs to prevent injection of unescaped dollar signs. Monitor vendor channels for updates and apply patches once released.

Description

sqlparse versions up to and including 0.6.0 contain a PHP code injection vulnerability. This flaw allows attackers to inject PHP expressions by supplying SQL text with unescaped dollar signs, which are processed and executed as PHP code in generated snippets. The vulnerability arises from the OutputPHPFilter placing attacker-controlled expressions inside double-quoted strings, leading to arbitrary code execution.

References

Community reviews

Loading reviews…