Skip to content
OpenAdvisories
High · 7.5 CVE-2024-4340 EUVD-2024-1064GHSA-2m57-hf25-phggPYSEC-2026-1940

Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

Published Apr 30, 2024 · Updated Nov 3, 2025 · Assigned by JFROG

Description

Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

Affected products

VendorProductAffectedFixed
— sqlparse < 0.5.0 0.5.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sqlparse 0.5.0-1 —
Debian 13 sqlparse 0.5.0-1 —
Debian 12 sqlparse 0.4.2-1+deb12u1 —
Debian 11 sqlparse 0.4.1-1+deb11u1 DLA-4000-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS sqlparse 0.4.4-1ubuntu0.1 USN-6771-1
Ubuntu 22.04 LTS sqlparse 0.4.2-1ubuntu0.22.04.2 USN-6771-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 cjson 1.7.18-1.el8sat RHSA-2025:9838
Red Hat Satellite Capsule 6 python-sqlparse +1 0.5.0-1.el8pc RHSA-2025:9838
Red Hat Satellite Capsule 6 rubygem-rack 2.2.14-1.el8sat RHSA-2025:9838
Red Hat Satellite 6 cjson 1.7.18-1.el8sat RHSA-2025:9838
Red Hat Satellite 6 python-sqlparse +1 0.5.0-1.el8pc RHSA-2025:9838
Red Hat Satellite 6 rubygem-rack 2.2.14-1.el8sat RHSA-2025:9838
Red Hat Rhui 4 python-aiohttp +1 3.9.4-1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-cryptography +1 42.0.8-1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-django +1 4.2.15-1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-grpcio +1 1.65.4-1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-gunicorn +1 22.0.0-1.0.1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-jinja2 +1 3.1.4-1.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-requests +1 2.32.3-2.el8ui RHSA-2025:1335
Red Hat Rhui 4 python-sqlparse +1 0.5.0-1.el8ui RHSA-2025:1335
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 17 python-sqlparse +1 0.4.1-2.el8ost RHSA-2024:9986, RHSA-2024:9984
Red Hat Ansible Automation Platform Inside 2 python-black +1 22.8.0-2.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 python-cryptography +1 42.0.5-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 python-jinja2 +1 3.1.4-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 python39-black +1 22.8.0-2.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 python39-cryptography +1 42.0.5-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 python39-jinja2 +1 3.1.4-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Inside 2 receptor +1 1.4.8-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python-black +1 22.8.0-2.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python-cryptography +1 42.0.5-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python-idna +1 3.7-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python-jinja2 +1 3.1.4-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python-requests +1 2.32.2-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python39-black +1 22.8.0-2.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python39-cryptography +1 42.0.5-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python39-idna +1 3.7-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python39-jinja2 +1 3.1.4-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 python39-requests +1 2.32.2-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform Developer 2 receptor +1 1.4.8-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.7-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 automation-hub +2 4.9.2-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-aiohttp +1 3.9.5-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-black +1 22.8.0-2.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-cryptography +1 42.0.5-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-galaxy-ng +1 4.9.2-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-gunicorn +1 22.0.0-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-idna +1 3.7-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-jinja2 +1 3.1.4-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-pillow +1 10.3.0-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-pydantic +1 1.10.15-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-requests +1 2.32.2-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-social-auth-app-django +1 5.4.1-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python-sqlparse +1 0.5.0-1.el9ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-aiohttp +1 3.9.5-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-black +1 22.8.0-2.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-cryptography +1 42.0.5-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-gunicorn +1 22.0.0-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-idna +1 3.7-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-jinja2 +1 3.1.4-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-pillow +1 10.3.0-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-pydantic +1 1.10.15-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-requests +1 2.32.2-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-social-auth-app-django +1 5.4.1-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 python39-sqlparse +1 0.5.0-1.el8ap RHSA-2024:3781
Red Hat Ansible Automation Platform 2 receptor +1 1.4.8-1.el8ap RHSA-2024:3781
ReleasePackageFixed inAdvisory
SLES 15 SP6 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLES 15 SP5 python-sqlparse 0.4.4-150400.6.7.1 SUSE-SU-2024:1767-1
SLES 15 SP5 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLES 15 SP4 python-sqlparse 0.4.4-150400.6.7.1 SUSE-SU-2024:1767-1
SLES 15 SP4 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLES 15 SP3 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLES for SAP 15 SP3 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLE HPC 15 SP4 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SLE HPC 15 SP3 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SUSE Manager Server 4.3 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SUSE Manager Proxy 4.3 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
SUSE Enterprise Storage 7.1 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 python-sqlparse 0.4.4-150400.6.7.1 SUSE-SU-2024:1767-1
openSUSE Leap 15.5 python3-sqlparse 0.4.2-150300.12.1 SUSE-SU-2024:1861-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.2.0-r0 —
Wolfi rolling py3-sqlparse 0.5.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI sqlparse < 0.5.0 0.5.0 GHSA-2m57-hf25-phgg

Advisories 10

References