high

CVE-2026-135390

Go · github.com/pion/dtls/v2

Summary

Pion DTLS: Client authentication bypass when client and server connections share a session store

Severity
high
CVSS
7.4
EPSS
0.7% (p54)
CWE
CWE-287
Also known as
GHSA-cqhp-ggp7-58qj#github.com/pion/dtls/v2
Published
2026-12-03
Updated
2026-12-03

Advisory details

Summary

Pion DTLS does not distinguish sessions created by a client from sessions created by a server. When an application shares a SessionStore between its outbound connections and its listener, a malicious server previously contacted by the application can reuse the outbound session to bypass the listener's authentication requirements. This doesn't affect webrtc users.

Discovered by Anthropic's OSS Scanner ANT-2026-ALO2G36N

Details

The attacker must have completed an outbound connection initiated by the application, retain that connection's session secret, and be able to reach the application's listener. No credentials accepted by the listener are required.

During DTLS 1.2 resumption, the listener looks up the peer-supplied session ID and accepts the returned session without checking which role created it. Client sessions are stored under a key derived from the remote address and server name. The malicious server can use that key to select the client's cached session and complete the handshake using the master secret it already knows.

Impact

The listener then accepts application data without running its normal PSK callback or client-certificate authentication checks. For example, a server trusted only for an outbound connection can gain access to a listener that requires a different PSK or a client certificate.

The fix https://github.com/pion/dtls/commit/2b234cd7174fc758372de0e479fc66515f54f631

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.