1. Archivio CVE
  2. 2025
  3. CVE-2025-6069

CVE-2025-6069

4.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L 4.3 – Media

Descrizione

The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
python software foundation cpython < 3.9.24 –
python software foundation cpython >= 3.10.0 < 3.10.19 –
python software foundation cpython >= 3.11.0 < 3.11.14 –
python software foundation cpython >= 3.12.0 < 3.12.12 –
python software foundation cpython >= 3.13.0 < 3.13.6 –
python software foundation cpython >= 3.14.0a1 < 3.14.0b3 –
Tutte le 64 vulnerabilità di Python Software Foundation Cpython

Tipo di vulnerabilità

CWE-1333 Espressione regolare inefficiente (ReDoS)

Il prodotto usa un’espressione regolare che nel caso peggiore ha una complessità di calcolo molto alta, anche esponenziale: un input costruito ad arte può bloccare il servizio.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: esaurimento della CPU

Come si previene

Architettura e progettazione Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
Configurazione del sistema Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Sviluppo Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Sviluppo Limit the length of the input that the regular expression will process.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 534 CVE di tipo CWE-1333, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org