HighGHSA-jm57-r6vj-mwg9CVE-2026-135392

Pion DTLS: Unbounded handshake cache allows remote memory exhaustion

Published 2 Dec 2026 · Updated 2 Dec 2026

Affected packages

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
>=2.1.4 <=2.2.12
Fixed in
No fix released

We confirm your address first. See our privacy policy.

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

Drop your go.mod hereWe find the exact github.com/pion/dtls/v3 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 retained handshake messages in an append-only cache without a limit on entry count or total memory consumption. The cache continued accepting entries after handshake completion.

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

Details

The handshake cache copied and retained each submitted message without deduplicating entries or enforcing a memory budget. Cached messages remained allocated for the lifetime of the connection.

Memory growth could occur through incoming handshake messages and repeated caching of outgoing handshake retransmissions. Completing the handshake did not stop further cache insertions. The fragment reassembly buffer's size limit did not prevent this vulnerability: completed messages were moved into a separate cache whose aggregate size was unrestricted.

Impact

An attacker able to deliver suitable DTLS traffic to an affected connection could exhaust application memory and cause a denial of service.

Fixed by https://github.com/pion/dtls/commit/f444d0825ab34fed4b210607fa802dcf1edaf51f

Is GHSA-jm57-r6vj-mwg9 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/v3, and gives you the command that fixes it.

More advisories for github.com/pion/dtls/v3

  • HighCVE-2026-135390Pion DTLS: Client authentication bypass when client and server connections share a session store · 3 Dec 2026
  • CriticalCVE-2026-135389Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching · 3 Dec 2026
  • MediumCVE-2026-135393Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes · 2 Dec 2026
  • MediumCVE-2026-135391Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes · 2 Dec 2026
  • CriticalCVE-2026-135388Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation · 30 Nov 2026
  • LowCVE-2026-54908Panic while parsing crafted ECDHE_PSK ServerKeyExchange in github.com/pion/dtls/v3 · 18 Aug 2026
All 10 advisories for github.com/pion/dtls/v3

References

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