CVE Vulnerabilities

CVE-2024-4340

Uncontrolled Recursion

Published: Apr 30, 2024 | Modified: Nov 03, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 MODERATE
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

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

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Ansible Automation Platform 2.4 for RHEL 8RedHatpython3x-sqlparse-0:0.5.0-1.el8ap*
Red Hat Ansible Automation Platform 2.4 for RHEL 9RedHatpython-sqlparse-0:0.5.0-1.el9ap*
Red Hat OpenStack Platform 17.1 for RHEL 8RedHatpython-sqlparse-0:0.4.1-2.el8ost*
Red Hat OpenStack Platform 17.1 for RHEL 9RedHatpython-sqlparse-0:0.4.1-2.el9ost*
Red Hat Satellite 6.15 for RHEL 8RedHatpython-sqlparse-0:0.5.0-1.el8pc*
Red Hat Satellite 6.15 for RHEL 8RedHatpython-sqlparse-0:0.5.0-1.el8pc*
RHUI 4 for RHEL 8RedHatpython-sqlparse-0:0.5.0-1.el8ui*
SqlparseUbuntudevel*
SqlparseUbuntujammy*
SqlparseUbuntumantic*
SqlparseUbuntunoble*
SqlparseUbuntuupstream*

Potential Mitigations

References