PT-2024-10474

CVE-2024-4340

·

Published

2024-04-15

·

Updated

2026-11-13

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions sqlparse (affected versions not specified)
Description The issue is related to the sqlparse.parse() function, which can lead to a Denial of Service due to a RecursionError when processing a heavily nested list. This can be exploited by a remote attacker to cause a denial of service. The impact depends on the use of the sqlparse.parse() function, and anyone parsing user input with this function is affected.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability. As a temporary workaround, consider limiting the recursion depth in the flatten() function of the TokenList class to prevent excessive recursion. For example, you can modify the function to raise an error when a maximum depth is reached.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2M57-HF25-PHGG
GHSA-62QF-JCQ8-8GXW
DLA-4000-1
ECHO-D041-0B74-8B13
MGASA-2024-0185
OESA-2024-1533
OESA-2024-1603
OESA-2024-1646
OPENSUSE-SU-2024_1767-1
OPENSUSE-SU-2024_1861-1
PYSEC-2026-1940
RHSA-2024:3781
RHSA-2024:9984
RHSA-2024:9986
RHSA-2025:1335
RHSA-2025:9838
SUSE-SU-2024:1767-1
SUSE-SU-2024_1767-1
SUSE-SU-2024:1861-1
SUSE-SU-2024_1861-1
USN-6771-1
Found an issue in the description? Have something to add? Feel free to write us 👾