Intel

AIKIDO-2025-10858

sqlparse is vulnerable to Allocation of Resources Without Limits or Throttling

Allocation of Resources Without Limits or Throttling Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 1, 2025

20

Low Risk

This Affects:

PYTHONsqlparse
0.1.0 - 0.5.3
Fixed in 0.5.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Denial of Service (DoS) due to insufficient parsing limits for large lists of tuples in SQL statements, allowing an attacker to craft a malicious, overly complex SQL statement with deeply nested tuples to cause excessive CPU consumption and service unavailability, which is mitigated by the introduction of configurable limits on grouping depth and tokens (MAX_GROUPING_DEPTH=100, MAX_GROUPING_TOKENS=10000).

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

sqlparse is vulnerable to Allocation of Resources Without Limits or Throttling in versions 0.1.0 - 0.5.3.

How to fix this

Upgrade the sqlparse library to the patch version.