Dev.to Security 🔐 Cybersecurity 👁 2 📖 3 min read

CVE-2026-135390: CVE-2026-135390: Authentication Bypass via Cross-Role Session Resumption in Pion DTLS

CVE-2026-135390: Authentication Bypass via Cross-Role Session Resumption in Pion DTLS Vulnerability ID: CVE-2026-135390 CVSS Score: 7.4 Published: 2026-12-03 CVE-2026-135390 is an authentication bypass vulnerability

CVE-2026-135390: Authentication Bypass via Cross-Role Session Resumption in Pion DTLS

Vulnerability ID: CVE-2026-135390
CVSS Score: 7.4
Published: 2026-12-03

CVE-2026-135390 is an authentication bypass vulnerability in the Pion DTLS Go library caused by improper validation of cached DTLS 1.2 sessions. When an application shares a single SessionStore across both outbound client connections and inbound server listeners, a remote server previously contacted by the application's client can reuse the negotiated session identifier and master secret to authenticate against the application's server listener via abbreviated session resumption, bypassing mutual TLS and Pre-Shared Key checks.

TL;DR

Pion DTLS fails to bind cached DTLS 1.2 session entries to the endpoint role (client vs. server) or validate authentication attributes upon session resumption. In deployments sharing a SessionStore between client and server configurations, an untrusted remote server contacted by the victim client can connect back to the victim's DTLS listener and resume the outbound session, bypassing client certificate and PSK authentication.

Technical Details

  • CVE / GHSA ID: CVE-2026-135390 / GHSA-cqhp-ggp7-58qj
  • Weakness Class: CWE-287: Improper Authentication
  • CVSS v3.1 Score: 7.4 High (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N)
  • EPSS Score: 0.58% (48.90th Percentile)
  • Attack Vector: Network (DTLS 1.2 Abbreviated Session Resumption)
  • Primary Impact: Bypass of Client Certificate and PSK Authentication on DTLS Listeners
  • Exploit & KEV Status: No Public PoC / Not Listed in CISA KEV
  • Patched Versions: pion/dtls v3.1.14, v4.0.0-rc.6

Affected Systems

  • Pion DTLS (github.com/pion/dtls/v2) >= 2.1.0, <= 2.2.12
  • Pion DTLS (github.com/pion/dtls/v3) >= 3.0.0, < 3.1.14
  • Pion DTLS (github.com/pion/dtls/v4) >= 4.0.0-rc.1, < 4.0.0-rc.6
  • pion/dtls/v2: >= 2.1.0, <= 2.2.12 (Fixed in: v3.1.14)
  • pion/dtls/v3: >= 3.0.0, < 3.1.14 (Fixed in: v3.1.14)
  • pion/dtls/v4: >= 4.0.0-rc.1, < 4.0.0-rc.6 (Fixed in: v4.0.0-rc.6)

Code Analysis

Commit: 2b234cd

Bind DTLS sessions to role, cipher suite, EMS, and auth metadata and enforce Session.usable() validation in v3

Commit: b835983

Harden DTLS session resumption state validation and flight guards in v4

Mitigation Strategies

  • Upgrade Pion DTLS dependencies to v3.1.14 or v4.0.0-rc.6, which enforce strict client/server role separation, cipher suite matching, EMS validation, and authentication re-verification on cached sessions.
  • Segregate SessionStore instances so that outbound DTLS client connections and inbound DTLS server listeners never read from or write to the same session cache.
  • Disable DTLS session resumption on inbound listeners requiring strict mutual TLS or PSK authentication by setting SessionStore to nil in the server dtls.Config.

Remediation Steps:

  1. Audit Go source code and dependency trees (go.mod) for github.com/pion/dtls/v2 (>= 2.1.0, <= 2.2.12), github.com/pion/dtls/v3 (< 3.1.14), or github.com/pion/dtls/v4 (< v4.0.0-rc.6).
  2. Inspect all dtls.Config initializations across the codebase to identify whether a non-nil SessionStore is shared between dtls.Dial (client) and dtls.Listen / dtls.Server (server) calls.
  3. Run go get github.com/pion/dtls/[email protected] (or v4.0.0-rc.6 for v4 users) and rebuild the affected binaries.
  4. Verify that distinct SessionStore instances or role-partitioned cache keys are used for client and server configurations as a defense-in-depth practice.

References

Read the full report for CVE-2026-135390 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.