MediumGHSA-qpgj-64qg-5m4rCVE-2026-135393

Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes

Published 2 Dec 2026 · Updated 2 Dec 2026

Affected packages

Affected
>=1.2.2 <=1.5.4
Fixed in
No fix released
Affected
>=2.0.0 <=2.2.12
Fixed in
No fix released
Affected
>=3.0.0 <3.1.13
Fixed in
3.1.13
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v3@v3.1.13
Affected
<4.0.0-rc.6
Fixed in
4.0.0-rc.6
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v4@v4.0.0-rc.6

We confirm your address first. See our privacy policy.

Which github.com/pion/dtls does your project really install?

Drop your go.mod hereWe find the exact github.com/pion/dtls version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.

Public repo?

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

Summary

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 https://github.com/pion/dtls/commit/979ad79d by processing the client certificate flight once per handshake.

Is GHSA-qpgj-64qg-5m4r in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/pion/dtls, and gives you the command that fixes it.

More advisories for github.com/pion/dtls

  • LowCVE-2026-26014Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls · 19 Feb 2026
  • MediumCVE-2026-26014Pion DTLS's usage of random nonce generation with AES GCM ciphers risks leaking the authentication key · 11 Feb 2026
  • MediumGHSA-4xgv-j62q-h3rjPanic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2 · 7 Feb 2023
  • MediumGHSA-hxp2-xqf3-v83hPanic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2 · 7 Feb 2023
  • MediumCVE-2022-29222Pion/DLTS Accepts Client Certificates Without CertificateVerify · 25 May 2022
  • HighCVE-2022-29190Pion DTLS Header reconstruction method can be thrown into an infinite loop · 24 May 2022
All 10 advisories for github.com/pion/dtls

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.