Descrizione
The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontrolled data.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Python Python: vulnerabili le versioni precedenti alla
3.10.21→ aggiornare alla3.10.21o successiva. - Python Python: vulnerabili le versioni dalla
3.11.0precedenti alla3.11.16→ aggiornare alla3.11.16o successiva. - Python Python: vulnerabili le versioni dalla
3.12.0precedenti alla3.12.14→ aggiornare alla3.12.14o successiva. - Python Python: vulnerabili le versioni dalla
3.13.0precedenti alla3.13.15→ aggiornare alla3.13.15o successiva. - Python Python: vulnerabili le versioni dalla
3.14.0precedenti alla3.14.7→ aggiornare alla3.14.7o successiva. - Python Python: vulnerabile la versione
3.15.0 alpha1→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha2→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha3→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha4→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha5→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha6→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha7→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 alpha8→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 beta1→ installare l'ultima release supportata dal vendor. - Python Python: vulnerabile la versione
3.15.0 beta2→ installare l'ultima release supportata dal vendor. - …e altre 1 configurazioni (vedi riferimenti).
Patch e advisory
- Patch: github.com/python/cpython/commit/07efb08123ba93…
- Patch: github.com/python/cpython/commit/1e7956f1a722df…
- Patch: github.com/python/cpython/commit/785df8f7438006…
- Patch: github.com/python/cpython/commit/7933f4bf7131aa…
- Patch: github.com/python/cpython/commit/bcf98ddbc40ec9…
- Patch: github.com/python/cpython/commit/c2390b9376e35a…
- Patch: github.com/python/cpython/commit/e9f92ac0b29829…
- Patch: github.com/python/cpython/issues/153030
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Python | Python | < 3.10.21 | 3.10.21 |
| Python | Python | ≥ 3.11.0 < 3.11.16 | 3.11.16 |
| Python | Python | ≥ 3.12.0 < 3.12.14 | 3.12.14 |
| Python | Python | ≥ 3.13.0 < 3.13.15 | 3.13.15 |
| Python | Python | ≥ 3.14.0 < 3.14.7 | 3.14.7 |
| Python | Python | 3.15.0 alpha1 | — |
| Python | Python | 3.15.0 alpha2 | — |
| Python | Python | 3.15.0 alpha3 | — |
| Python | Python | 3.15.0 alpha4 | — |
| Python | Python | 3.15.0 alpha5 | — |
| Python | Python | 3.15.0 alpha6 | — |
| Python | Python | 3.15.0 alpha7 | — |
| Python | Python | 3.15.0 alpha8 | — |
| Python | Python | 3.15.0 beta1 | — |
| Python | Python | 3.15.0 beta2 | — |
| Python | Python | 3.15.0 beta3 | — |
Riferimenti
- Patchhttps://github.com/python/cpython/commit/07efb08123ba9367a7107325adb9d5626dca1ca9
- Patchhttps://github.com/python/cpython/commit/1e7956f1a722df9aabc509c30f8fbdc3a2b4fdc7
- Patchhttps://github.com/python/cpython/commit/785df8f743800661961528970f8598edcd291c14
- Patchhttps://github.com/python/cpython/commit/7933f4bf7131aa4140750f9404f5de0aa2969ced
- Patchhttps://github.com/python/cpython/commit/bcf98ddbc40ec9b3ee87da0124a5660b19b7e606
- Patchhttps://github.com/python/cpython/commit/c2390b9376e35a701ed3acc597b8fc87546c9b00
- Patchhttps://github.com/python/cpython/commit/e9f92ac0b298292e7ff998e52cb8ccacfb27a0bd
- Patchhttps://github.com/python/cpython/issues/153030
- Patchhttps://github.com/python/cpython/pull/153031
- Advisory di terze partihttp://www.openwall.com/lists/oss-security/2026/07/09/4
- Riferimentohttps://mail.python.org/archives/list/security-announce@python.org/thread/F6453LWKSHKCTWFLCOURWPLETNUIW2Z5/
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html