{"id":"GHSA-cqhp-ggp7-58qj","summary":"Pion DTLS: Client authentication bypass when client and server connections share a session store","details":"### Summary\n\nPion 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.\n\nDiscovered by Anthropic's OSS Scanner `ANT-2026-ALO2G36N`\n\n### Details\n\nThe 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.\n\nDuring 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.\n\n### Impact\n\nThe 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.\n\nThe fix https://github.com/pion/dtls/commit/2b234cd7174fc758372de0e479fc66515f54f631","aliases":["CVE-2026-135390"],"modified":"2026-12-03T02:00:16.439390571Z","published":"2026-12-03T01:53:00Z","database_specific":{"github_reviewed_at":"2026-12-03T01:53:00Z","nvd_published_at":"2026-11-24T17:18:24Z","cwe_ids":["CWE-287"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/pion/dtls/security/advisories/GHSA-cqhp-ggp7-58qj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135390"},{"type":"WEB","url":"https://github.com/pion/dtls/pull/1234"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/2b234cd7174fc758372de0e479fc66515f54f631"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/b8359836b8941ff2a37ad50fb23f801edebeece8"},{"type":"PACKAGE","url":"https://github.com/pion/dtls"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v3.1.14"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6"}],"affected":[{"package":{"name":"github.com/pion/dtls/v2","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.1.0"},{"last_affected":"2.2.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cqhp-ggp7-58qj/GHSA-cqhp-ggp7-58qj.json"}},{"package":{"name":"github.com/pion/dtls/v3","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cqhp-ggp7-58qj/GHSA-cqhp-ggp7-58qj.json"}},{"package":{"name":"github.com/pion/dtls/v4","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.0.0-rc.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cqhp-ggp7-58qj/GHSA-cqhp-ggp7-58qj.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}