CVE-2024-4340

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

CVE-2024-4340 is fixed in 3 products on 1 platform, first by python3-sqlparse 0.4.2-1ubuntu0.22.04.2, released April 30, 2024. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.5
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0324
88th percentile

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

Where it's fixed

ProductFixed inFixReleased
Linux
python3-sqlparse · Ubuntu 22.04.1 LTS (jammy) 0.4.2-1ubuntu0.22.04.2 python3-sqlparse 0.4.2-1ubuntu0.22.04.2 Apr 30, 2024
python3-sqlparse · Ubuntu 24.04.5 LTS (noble) 0.4.4-1ubuntu0.1 python3-sqlparse 0.4.4-1ubuntu0.1 Apr 30, 2024
python3-sqlparse · sles 15.6 0.4.2-150300.12.1 SUSE-SU-2024:1861-1 May 30, 2024
sqlformat · Ubuntu 22.04.1 LTS (jammy) 0.4.2-1ubuntu0.22.04.2 sqlformat 0.4.2-1ubuntu0.22.04.2 Apr 30, 2024
sqlformat · Ubuntu 24.04.5 LTS (noble) 0.4.4-1ubuntu0.1 sqlformat 0.4.4-1ubuntu0.1 Apr 30, 2024
sqlparse · Debian 12.15 (bookworm) 0.4.2-1+deb12u1 DEBIAN-CVE-2024-4340 Apr 30, 2024
sqlparse · Debian 13.5 (trixie) 0.5.0-1 DEBIAN-CVE-2024-4340 Apr 30, 2024
sqlparse · Debian 14 0.5.0-1 DEBIAN-CVE-2024-4340 Apr 30, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.