> CVE-2026-84305 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-09-01 19:17
MODIFIED
2026-09-01 19:17
CVSS_SCORE V3
5.1
EPSS (Prob. Exploit)
0.19%
Top 92.0%
DATA SOURCES:
NVD đź”— 2026-09-01 CWE MITRE đź”— 2026-10-01 FIRST EPSS đź”— 2026-10-18 GITHUB đź”— 2026-09-07 OSV đź”— 2026-10-26

> DESCRIPTION

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-407

> CWE DETAILED DESCRIPTIONS

CWE-407: Inefficient Algorithmic Complexity - An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

> GITHUB SECURITY ADVISORY

GHSA-cfqr-cjx5-5jcm MODERATE

sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption

AFFECTED PACKAGES:
PIP / sqlparse
<= 0.5.5
Fixed in: 0.6.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption

AFFECTED PACKAGES:
Unknown / Unknown
36 versions affected
ALIASES:
GHSA-cfqr-cjx5-5jcm, PYSEC-2026-3923

> HISTORIQUE DES MODIFICATIONS

Première apparition
01/09/2026 19:17
Source: NVD
📊 ENRICHISSEMENT 01/10/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-407: Inefficient Algorithmic Complexity - An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an ...
Total des modifications: 1 Dernière mise à jour: 4 weeks ago

> REFERENCES

https://github.com/andialbrecht/sqlparse/commit/a51df6d9e2d31b44be9adb6bc8732517...
https://github.com/andialbrecht/sqlparse/releases/tag/0.6.0
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcm
« BACK_TO_HOME