Summary
Pion DTLS, the Go implementation of DTLS, can store a session before the handshake is complete and before client-authentication checks are enforced, allowing a remote client to resume it without authenticating. The vulnerability is rated critical (CVSS 9.1) and the vendor fixes it in version 3.1.14.
What happened
A server using a SessionStore saved the session ID and master secret after the ClientKeyExchange message, before receiving a valid Finished message and before enforcing the configured client-authentication checks. As a result, a remote client could resume the stored session through the abbreviated handshake without having completed authentication. This can bypass client certificates required through RequireAnyClientCert or RequireAndVerifyClientCert, as well as a VerifyConnection callback that rejects the connection. For this to apply, the server must use a SessionStore and negotiate a certificate-based cipher suite. The weakness is classified as CWE-287 (improper authentication).
Why it matters
The abbreviated handshake can allow unauthorized access to application data. The CVSS 3.1 score is 9.1 (critical), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, assigned by GitHub (CNA). According to the source, WebRTC users are not affected. The source does not state active exploitation, and CISA's KEV catalog is not cited for this issue.
Affected products and versions
Pion dtls, versions >= 2.1.0, <= 2.2.12 and >= 3.0.0, < 3.1.14.
| Product | Versions | Fixed in |
|---|---|---|
| pion dtls | >= 2.1.0, <= 2.2.12 | — |
| pion dtls | >= 3.0.0, < 3.1.14 | — |
Action recommended by the source
The vendor states the issue is fixed in version 3.1.14. The source does not state a fixed version for the 2.x branch (>= 2.1.0, <= 2.2.12) nor any other mitigations. More details in the vendor advisory: https://github.com/pion/dtls/security/advisories/GHSA-hhpj-h56m-9f2p
Sources and references
- https://github.com/pion/dtls/security/advisories/GHSA-hhpj-h56m-9f2p — CVE Program
- https://github.com/pion/dtls/pull/1234 — CVE Program
- https://github.com/pion/dtls/commit/410ac0ef28df49757d3a695c10dda75137e1dbf2 — CVE Program
- https://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284 — CVE Program
- https://github.com/pion/dtls/releases/tag/v3.1.14 — CVE Program
- https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6 — CVE Program
Weaknesses (CWE): CWE-287
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.