CVSS 4.0
8.4 highCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:NHigh (8.4) in andialbrecht sqlparse. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:NCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:LExplain CVE-2026-112307 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112307?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112307?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112307 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| andialbrecht sqlparse | through 0.6.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | sqlparse | no fix listed | DEBIAN-CVE-2026-112307 |
| Ubuntu | 22.04:LTS, 24.04:LTS, 26.04:LTS and 4 more | sqlparse | no fix listed | UBUNTU-CVE-2026-112307 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | python-sqlparse | 0.2.4-150100.6.17.1 | SUSE-SU-2026:5042-1 |
| openSUSE | Tumbleweed | python-sqlparse | 0.6.0-2.1 | openSUSE-SU-2026:12382-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Important.
This vulnerability is rated as Important severity because successful exploitation can result in arbitrary code execution with the privileges of the executing application. Within Red Hat environments, sqlparse is primarily utilized by Python-based services for database interactions, query inspection, and internal migrations rather than generating executable PHP scripts. To trigger this flaw, an application must explicitly invoke sqlparse to export untrusted SQL input using the PHP formatting mode and then evaluate or run the resulting output in a PHP interpreter. Consequently, standard deployments of Red Hat products that consume this library do not typically expose this execution vector.
--- CME Mitigation Guidance (2026-10-20) ---
Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.
The highest-value action is to sanitize and escape dollar signs when formatting SQL tokens into PHP double-quoted strings in OutputPHPFilter, or avoid executing generated PHP snippets: upgrade to the fixed Python Sqlparse/Ansible Automation Platform 24/Controller Rhel/Ansible Automation Platform 24/Lightspeed Rhel/Automation Controller/Python3X Sqlparse/Cloudservices/Advisor Backend/Advisor Backend/Python3.11 Sqlparse/Python3.12 Sqlparse/Ansible Automation Platform 26/Hub Rhel/Ansible Automation Platform Tech Preview/Metrics Service Rhel/Ansible Automation Platform 27/Aap Cloud Billing Rhel/Ansible Automation Platform 27/Metrics Service Rhel/Cloudservices/Rbac/Rhoai/Odh Mlflow Rhel/Rhoai/Odh Pipeline Runtime Datascience Cpu Py312 Rhel/Rhoai/Odh Pipeline Runtime Pytorch Cuda Py312 Rhel/Rhoai/Odh Pipeline Runtime Pytorch Llmcompressor Cuda Py312 Rhel/Rhoai/Odh Pipeline Runtime Pytorch Rocm Py312 Rhel/Rhoai/Odh Pipeline Runtime Tensorflow Cuda Py312 Rhel/Rhoai/Odh Pipeline Runtime Tensorflow Rocm Py312 Rhel/Rhoai/Odh Th06 Cpu Torch210 Py312 Rhel/Rhoai/Odh Th06 Cuda130 Torch210 Py312 Rhel/Rhoai/Odh Th06 Rocm64 Torch291 Py312 Rhel/Rhoai/Odh Training Cuda128 Torch29 Py312 Rhel/Rhoai/Odh Workbench Codeserver Datascience Cpu Py312 Rhel/Rhoai/Odh Workbench Jupyter Datascience Cpu Py312 Rhel/Rhoai/Odh Workbench Jupyter Pytorch Cuda Py312 Rhel/Rhoai/Odh Workbench Jupyter Pytorch Llmcompressor Cuda Py312 Rhel/Rhoai/Odh Workbench Jupyter Pytorch Rocm Py312 Rhel/Rhoai/Odh Workbench Jupyter Tensorflow Cuda Py312 Rhel/Rhoai/Odh Workbench Jupyter Tensorflow Rocm Py312 Rhel/Rhoai/Odh Workbench Jupyter Trustyai Cpu Py312 Rhel/Rhoai/Odh Th Torch Cpu Py312 Rhel/Rhoai/Odh Th Torch Cuda Py312 Rhel/Rhoai/Odh Th Torch Rocm Py312 Rhel/Ansible Automation Platform/Automation Dashboard Rhel/Ansible Automation Platform 25/Controller Rhel/Ansible Automation Platform 25/Lightspeed Rhel/Ansible Automation Platform 26/Controller Rhel/Ansible Automation Platform 26/Eda Controller Rhel/Ansible Automation Platform 26/Gateway Rhel/Ansible Automation Platform 26/Lightspeed Rhel/Ansible Automation Platform 27/Controller Rhel/Ansible Automation Platform 27/Eda Controller Rhel/Ansible Automation Platform 27/Gateway Rhel/Ansible Automation Platform 27/Hub Rhel/Ansible Automation Platform 27/Lightspeed Rhel/Galaxy Ng/Automation Hub Container/Ansible Ai Connect Service/Koku/Insights Rbac/Google Lightspeed Agent/Discovery/Discovery Server Rhel/Satellite/Iop Advisor Backend Rhel builds, which escape dollar signs as \$ after backslash and quotation mark escaping in OutputPHPFilter, closing all 3 injection vectors (embedded PHP variable interpolation expressions (${expr}), embedded complex PHP expression interpolation sequences ({${expr}})!, crafted SQL containing unescaped dollar signs). Until patched, this is a concern on Applications on any platform passing untrusted SQL to sqlparse with PHP output formatting where the resulting code is executed in PHP, so Disallow untrusted SQL input from being processed with sqlparse PHP output formatting and prevent execution or evaluation of generated PHP snippets in runtime environments. As a compensating measure, Inspect incoming HTTP payloads with a Web Application Firewall to detect and block SQL input containing PHP variable interpolation patterns such as unescaped dollar-sign expressions, Use an Endpoint Detection and Response agent to detect anomalous post-exploitation behavior or child process spawning triggered when the PHP runtime evaluates injected expressions, and Deploy Falco or eBPF runtime security to detect unexpected shells or suspicious system calls spawned by the PHP process executing injected code. These controls limit blast radius and contain exploitation, but they do not fix the underlying unescaped PHP string interpolation defect — apply the upstream patch to fully remediate.
Highest-impact CME: CME-1309 Script Engine Restriction (Sandbox / Disable) (high)
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/controller-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/lightspeed-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/controller-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/controller-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/eda-controller-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/gateway-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/hub-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/lightspeed-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/aap-cloud-billing-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/controller-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/eda-controller-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/gateway-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/hub-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/lightspeed-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/metrics-service-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform/automation-dashboard-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-tech-preview/metrics-service-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | automation-controller | Affected | |
| Red Hat Ansible Automation Platform 2 | python3.11-sqlparse | Not affected | |
| 34 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112307.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.