—
GO-2026-6165
Panic while parsing crafted ECDHE_PSK ServerKeyExchange in github.com/pion/dtls/v3
Quick fix
GO-2026-6165 — github.com/pion/dtls/v3: upgrade to the fixed version with the command below.
go get github.com/pion/dtls/v3@v3.1.4 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go / github.com/pion/dtls/v3
Introduced in:
0 Fixed in: 3.1.4 Fix
go get github.com/pion/dtls/v3@v3.1.4