Descrizione
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.1.4 until 3.1.13, the handshake cache copied and retained submitted messages without deduplicating entries, limiting the entry count, limiting total payload bytes, or stopping new insertions after handshake completion. A remote peer able to deliver suitable DTLS traffic can grow the cache through incoming handshake messages and repeated caching of outgoing retransmissions for the lifetime of the connection. The fragment reassembly buffer's separate size limit does not prevent this issue because completed messages are retained in the append-only handshake cache. Unbounded cache growth can exhaust application memory and cause a denial of service. The issue is fixed in version 3.1.13.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.7% (percentile 50).
Versioni da aggiornare
- pion dtls: vulnerabile la versione
>= 3.0.0, < 3.1.13→ installare l'ultima release supportata dal vendor. - pion dtls: vulnerabile la versione
>= 2.1.4, <= 2.2.12→ 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 |
|---|---|---|---|
| pion | dtls | >= 3.0.0, < 3.1.13 | — |
| pion | dtls | >= 2.1.4, <= 2.2.12 | — |
Riferimenti
- Riferimentohttps://github.com/pion/dtls/commit/8deed2f2dea7a76c363b5314b3cc533e0a3200ac
- Riferimentohttps://github.com/pion/dtls/commit/f444d0825ab34fed4b210607fa802dcf1edaf51f
- Riferimentohttps://github.com/pion/dtls/pull/1229
- Riferimentohttps://github.com/pion/dtls/releases/tag/v3.1.13
- Riferimentohttps://github.com/pion/dtls/releases/tag/v4.0.0-rc.6
- Riferimentohttps://github.com/pion/dtls/security/advisories/GHSA-jm57-r6vj-mwg9