Skip to main content
Menu
Advisories

Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes

GHSA-QPGJ-64QG-5M4RPublished Updated GitHub

Description

Pion DTLS could repeatedly process a client's certificate flight while waiting for the client's Finished message. A malicious client could withhold Finished and send additional handshake traffic, causing the server to repeat certificate processing and cryptographic verification for the same handshake. Repeated or concurrent attempts could consume excessive CPU resources and reduce service availability.

Discovered by Anthropic's OSS Scanner, tracking ID E9EALMAT.

Details

The server's handshake state machine did not distinguish between successfully processing the client's certificate flight and completing the handshake.

While waiting for Finished, additional incoming handshake traffic could cause the server to revisit cached Certificate, ClientKeyExchange, and CertificateVerify messages. This repeated work could include certificate parsing, handshake signature verification, and certificate-chain verification, depending on the configured authentication policy.

Impact

An attacker can make the server repeat expensive operations without completing a new handshake for each operation. This can consume CPU resources and delay legitimate connections. pion/webrtc applications are affected when operating as the DTLS server.

fixed by github.com/pion/dtls/commit/979ad79d by processing the client certificate flight once per handshake

Affected versions

References

GitHub · pion/dtls