Intel

AIKIDO-2024-10027

sqlparse is vulnerable to Uncontrolled Recursion

Uncontrolled RecursionCVE-2024-4340 Published Apr 15, 2024

75

High Risk

This Affects:

pythonsqlparse
0.1.0 - 0.4.4
Fixed in 0.5.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Denial of Service (DoS) caused by a RecursionError when parsing deeply nested lists with the sqlparse.parse() function.

Who does this affect?

You are affected if you are using a version of this package = 0.4.4.

Background info

sqlparse is vulnerable to Uncontrolled Recursion in versions 0.1.0 - 0.4.4.

How to fix this

Upgrade the sqlparse library to the patch version.