Descrizione
dnspython is a DNS toolkit for Python. Prior to version 2.9.2, the from_text() parser for WKS records does not require the service number to be between 0 and 65535 before using it as a bitmap offset. An attacker-controlled zone file can supply a larger number, causing the service bitmap to grow to an extremely large size through inefficient repeated extension, consuming excessive memory and CPU and potentially terminating the process. Applications are affected only when they parse zone-file text whose record type and rdata are attacker controlled. This issue is fixed in version 2.9.2.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.5% (percentile 45).
Versioni da aggiornare
- rthalley dnspython: vulnerabile la versione
< 2.9.2→ installare l'ultima release supportata dal vendor.
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 |
|---|---|---|---|
| rthalley | dnspython | < 2.9.2 | — |
Riferimenti
- Riferimentohttps://github.com/rthalley/dnspython/commit/388db14ee9923288f6e73f86e482c77706e59d73
- Riferimentohttps://github.com/rthalley/dnspython/commit/a62e1be066da0ed71b5b59f37435bb17cfa0070f
- Riferimentohttps://github.com/rthalley/dnspython/releases/tag/v2.9.2
- Riferimentohttps://github.com/rthalley/dnspython/security/advisories/GHSA-vvf4-9x63-8xvv
- Riferimentohttps://github.com/rthalley/dnspython/security/advisories/GHSA-vvf4-9x63-8xvv