Advisory record · GHSA-2m57-hf25-phgg

sqlparse parsing heavily nested list leads to Denial of Service

CVSS 7.5 HighEPSS 0.032 · 88th percentile

Published by the GitHub Advisory Database at 15 Apr 2024, 20:21 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
sqlparsePyPI<0.5.00.5.0
Identifiers
GHSA-2m57-hf25-phgg · CVE-2024-4340 · PYSEC-2026-1940
Weakness (CWE)
CWE-674
Published
15 Apr 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

sqlparse versions before 0.5.0 are vulnerable to a denial of service when parsing a heavily nested list passed to sqlparse.parse(), which raises a RecursionError. Any application that parses user-supplied input with this function can be affected. Upgrade to sqlparse 0.5.0 or later; the source gives no other workaround.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (JFROG)
  • CISA KEV Not listed.
  • EPSS 0.032, the 88th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:35 UTC First seen by agentprime
  2. 31 Oct 2026, 14:35 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.