CVE-2026-112307 json
sqlparse through 0.6.0 PHP Code Injection via output_format='php'
published 2026-10-19 20 d ago modified 2026-10-19 20 d ago also EUVD-2026-104399
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- python-sqlparse SLE Module for Package Hub 15 SP7 0.2.4-150100.6.17.1
suse advisories SUSE-SU-2026:5042-1
- python-sqlparse openSUSE Tumbleweed 0.6.0-2.1
opensuse advisories openSUSE-SU-2026:12382-1
- github.com/andialbrecht/sqlparse#930 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-112307 updated cvss 7.3
sqlparse: sqlparse: Arbitrary code execution via unescaped PHP output formatting
-
Red Hat Ansible Automation Platform 2 python-sqlparse 0.6.0-1.el10ap, python3.12-sqlparse 0.6.0-1.el9ap, automation-controller 4.7.18-1.el9ap, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9, ansible-automation-platform-24/controller-rhel8, +6 moreaffected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9 Red Hat Satellite 6 python3-sqlparse, python-sqlparse 0.6.0-1.el10ap, satellite/iop-advisor-backend-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 python3x-sqlparse 0.5.0-1.el8ap, python3.11-sqlparse 0.5.3-2.el9ap, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9, ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/lightspeed-rhel8, +5 more Red Hat Discovery 2 discovery/discovery-server-rhel9not affected: vulnerable code not present
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-th-torch-cpu-py312-rhel9, rhoai/odh-th-torch-cuda-py312-rhel9, rhoai/odh-th-torch-rocm-py312-rhel9, rhoai/odh-th06-cpu-torch210-py312-rhel9, rhoai/odh-th06-rocm64-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch210-py312-rhel9, +15 more Red Hat OpenShift Container Platform 4 python2-sqlparse, python3-sqlparse Red Hat OpenStack Platform 13 (Queens) python-sqlparse 0.6.0-1.el10ap Red Hat OpenStack Platform 16.2 python3-sqlparse Red Hat OpenStack Platform 17.1 python3-sqlparse, python-sqlparse 0.6.0-1.el10ap Red Hat OpenStack Platform 18.0 python-sqlparse 0.6.0-1.el10apnot affected: vulnerable code not in execute path
-
Red Hat Update Infrastructure 4 for Cloud Providers python-sqlparse 0.6.0-1.el10apnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 d ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.4 | 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 |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
| CNA | 4.0 | 8.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- andialbrecht sqlparse
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/andialbrecht/sqlparse/pull/930
patch, issue-tracking
-
github.com
/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py
technical-description
-
vulncheck.com
/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php
third-party-advisory
Sources
- CVE List CVE-2026-112307
- NVD CVE-2026-112307
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.