Go Vulnerability Database
GO-2026-6165
Panic while parsing crafted ECDHE_PSK ServerKeyExchange in github.com/pion/dtls/v3
Details
In github.com/pion/dtls/v3 before 3.1.4, MessageServerKeyExchange.Unmarshal does not verify that data remains after parsing the PSK identity hint when handling ECDHE_PSK key exchange messages. A remote peer sending a crafted ServerKeyExchange message where the PSK hint consumes all remaining data triggers an index out of range runtime panic, causing a denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/pion/dtls/v3 | All versions before 3.1.4 (fixed in 3.1.4) |