CVE Vulnerabilities

CVE-2026-59893

Inefficient Regular Expression Complexity

Published: Aug 17, 2026 | Modified: Sep 18, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

Weakness

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Ansible Automation Platform 2.5 for RHEL 8RedHatpython3.12-sqlparse-0:0.6.0-1.el8ap*
Red Hat Ansible Automation Platform 2.5 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9ap*
Red Hat Ansible Automation Platform 2.6 for RHEL 10RedHatpython-sqlparse-0:0.6.0-1.el10ap*
Red Hat Ansible Automation Platform 2.6 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9ap*
Red Hat Ansible Automation Platform 2.7 for RHEL 10RedHatpython-sqlparse-0:0.6.0-1.el10ap*
Red Hat Ansible Automation Platform 2.7 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9ap*
Red Hat Satellite 6.16 for RHEL 8RedHatpython-sqlparse-0:0.6.0-1.el8pc*
Red Hat Satellite 6.16 for RHEL 8RedHatpython-sqlparse-0:0.6.0-1.el8pc*
Red Hat Satellite 6.16 for RHEL 9RedHatpython-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.16 for RHEL 9RedHatpython-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.17 for RHEL 9RedHatpython-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.17 for RHEL 9RedHatpython-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.18 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.18 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.19 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9pc*
Red Hat Satellite 6.19 for RHEL 9RedHatpython3.12-sqlparse-0:0.6.0-1.el9pc*
Red Hat Ansible Automation Platform 2.2RedHatansible-automation-platform/bootc-automation-portal-rhel9:1791865660*
Red Hat Ansible Automation Platform 2.5RedHatansible-automation-platform-25/controller-rhel8:1789607021*
Red Hat Ansible Automation Platform 2.5RedHatansible-automation-platform-25/gateway-rhel8:1789605572*
Red Hat Ansible Automation Platform 2.5RedHatansible-automation-platform-25/hub-rhel8:1789606395*
Red Hat Ansible Automation Platform 2.5RedHatansible-automation-platform-25/lightspeed-rhel8:1789685837*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/controller-rhel9:1789673739*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/eda-controller-rhel9:1789653608*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/gateway-rhel9:1789666472*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/hub-rhel9:1789611274*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/lightspeed-rhel9:1789656884*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-tech-preview/metrics-service-rhel9:1789654558*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/eda-controller-rhel9:1788917355*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/lightspeed-rhel9:1788916677*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/metrics-service-rhel9:1788917058*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/hub-rhel9:1789572632*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/controller-rhel9:1791253059*
Red Hat Discovery 2RedHatdiscovery/discovery-server-rhel9:1788205779*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-mlflow-rhel9:1791865967*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1791829804*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1791829182*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1791829658*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1791868244*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1791828837*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1791868241*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-cpu-torch210-py312-rhel9:1791874335*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-cuda130-torch210-py312-rhel9:1791961113*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-th06-rocm64-torch291-py312-rhel9:1791872119*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-training-cuda128-torch29-py312-rhel9:1791786619*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1791788267*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1791872084*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1791829615*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1791832538*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1791868194*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1791833225*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1791868238*
Red Hat OpenShift AI 3.4RedHatrhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1791829530*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-training-cuda128-torch29-py312-rhel9:1789529851*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-mlflow-rhel9:1791947857*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1791952873*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1791816462*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1791816487*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1791951049*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1791951047*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1791950760*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-th-torch-cpu-py312-rhel9:1791926611*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-th-torch-cuda-py312-rhel9:1791927642*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-th-torch-rocm-py312-rhel9:1791925861*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1791825469*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1791903880*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1791817064*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1791817844*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1791816223*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1791899290*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1791816175*
Red Hat OpenShift AI 3.5RedHatrhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1791816316*
Red Hat Satellite 6.18RedHatsatellite/iop-advisor-backend-rhel9:1789666499*
Red Hat Satellite 6.19RedHatsatellite/iop-advisor-backend-rhel9:1789666498*
SqlparseUbuntuesm-infra/bionic*
SqlparseUbuntuesm-infra/focal*
SqlparseUbuntujammy*
SqlparseUbuntunoble*
SqlparseUbunturesolute*
SqlparseUbuntuupstream*

Potential Mitigations

References