Summary
Pion DTLS, a Go implementation of DTLS, can accept crafted handshake signatures without the attacker holding the certificate's private key. It is fixed in version 3.1.13; the CVSS 3.1 score is 9.1 (critical).
What happened
From version 2.0.0 until 3.1.13, the implementation selected signature verification based on the certificate public key, but derived the digest from the signature scheme supplied by the peer, without validating that the scheme, key type, and hash requirements were consistent. The affected functions are verifyKeySignature (for ServerKeyExchange) and verifyCertificateVerify (for CertificateVerify). An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate can submit crafted handshake signatures that are accepted without possession of the certificate's private key. The weakness is classified as CWE-347 (improper verification of cryptographic signature).
Why it matters
According to the source, the attacker could impersonate the peer and compromise the confidentiality and integrity of protected traffic. Checking a WebRTC SDP certificate fingerprint does not prevent the attack, because the genuine certificate is presented. The CVSS 3.1 score is 9.1 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, assigned by CNA GitHub_M) and the severity is critical. The source does not state that the issue is being actively exploited.
Affected products and versions
Pion dtls, versions >= 3.0.0 and < 3.1.13, and versions >= 2.0.0 and <= 2.2.12.
| Product | Versions | Fixed in |
|---|---|---|
| pion dtls | >= 3.0.0, < 3.1.13 | — |
| pion dtls | >= 2.0.0, <= 2.2.12 | — |
Action recommended by the source
The vendor states the issue is fixed in version 3.1.13 and recommends upgrading to that version. The source does not state a fixed version for the 2.x series or any alternative mitigations. The vendor's references include the GitHub security advisory, pull request 1229, and the v3.1.13 and v4.0.0-rc.6 releases.
Sources and references
- https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf — CVE Program
- https://github.com/pion/dtls/pull/1229 — CVE Program
- https://github.com/pion/dtls/commit/87aff19290780eb4b2db31d1402faf8f425a8ff1 — CVE Program
- https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87 — CVE Program
- https://github.com/pion/dtls/releases/tag/v3.1.13 — CVE Program
- https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6 — CVE Program
Weaknesses (CWE): CWE-347
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.