Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.0.0 until 3.1.13, the implementation selected signature verification based on the certificate public key while deriving the digest from the peer-controlled signature scheme without validating that the scheme, key type, and hash requirements were consistent. The affected verification functions are verifyKeySignature for ServerKeyExchange and verifyCertificateVerify for CertificateVerify. An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate can submit crafted handshake signatures that are accepted without possession of the certificate private key. This can let