Vulnerabilities in pkg:golang/github.com/pion/dtls

PACKAGE
Advisory Identifier: GHSA-qpgj-64qg-5m4r
Advisory Summary

CVE-2026-135393 is a MODERATE repeated client certificate verification allows vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Pion DTLS libraries in the Go ecosystem. The issue involves repeated client certificate verification allows excessive cpu consumption during dtls handshakes. Remediation is available by upgrading affected packages to version 3.1.13, 4.0.0-rc.6.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/pion/dtls

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/pion/dtls. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qpgj-64qg-5m4r CVE-2026-135393 MODERATE Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes
GHSA-9f3f-wv7r-qc8r CVE-2026-26014 MODERATE Pion DTLS's usage of random nonce generation with AES GCM ciphers risks leaking the authentication key
GHSA-cm8f-h6j3-p25c CVE-2022-29190 HIGH Pion DTLS Header reconstruction method can be thrown into an infinite loop
GHSA-cx94-mrg9-rq4j CVE-2022-29189 MODERATE Pion/DTLS contains buffer for inbound DTLS fragments with no limit
GHSA-w45j-f832-hxvh CVE-2022-29222 MODERATE Pion/DLTS Accepts Client Certificates Without CertificateVerify
GHSA-hxp2-xqf3-v83h - MODERATE Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2
GHSA-4xgv-j62q-h3rj - MODERATE Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2
GHSA-7gfg-6934-mqq2 CVE-2019-20786 CRITICAL Improper Authenication in Pion DTLS

CVE-2026-135393 at a Glance

CVE Identifier CVE-2026-135393
GHSA Identifier GHSA-qpgj-64qg-5m4r
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Pion DTLS
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-135393

To remediate this vulnerability, upgrade all affected Pion DTLS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/pion/dtls fixed: Latest secure release
Upgrade github.com/pion/dtls to Latest secure release
github.com/pion/dtls/v2 fixed: Latest secure release
Upgrade github.com/pion/dtls/v2 to Latest secure release
github.com/pion/dtls/v3 fixed: 3.1.13
Upgrade github.com/pion/dtls/v3 to 3.1.13
github.com/pion/dtls/v4 fixed: 4.0.0-rc.6
Upgrade github.com/pion/dtls/v4 to 4.0.0-rc.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/pion/dtls

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-135393, inspect your project dependencies for Pion DTLS:

inspect dependencies for github.com/pion/dtls

Analyze the terminal output to locate any version of Pion DTLS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.13), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Pion DTLS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Pion DTLS could repeatedly process a client's certificate flight while waiting for the client's Finished message. A malicious client could withhold Finished and send additional handshake traffic, causing the server to repeat certificate processing and cryptographic verification for the same handshake. Repeated or concurrent attempts could consume excessive CPU resources and reduce service availability. Discovered by Anthropic's OSS Scanner, tracking ID `E9EALMAT`. ### Details The server's handshake state machine did not distinguish between successfully processing the client's certificate flight and completing the handshake. While waiting for Finished, additional incoming handshake traffic could cause the server to revisit cached Certificate, ClientKeyExchange, and CertificateVerify messages. This repeated work could include certificate parsing, handshake signature verification, and certificate-chain verification, depending on the configured authentication policy. ### Impact An attacker can make the server repeat expensive operations without completing a new handshake for each operation. This can consume CPU resources and delay legitimate connections. pion/webrtc applications are affected when operating as the DTLS server. Fixed by https://github.com/pion/dtls/commit/979ad79d by processing the client certificate flight once per handshake.

CVE-2026-135393 Affected Pion DTLS Versions

4 component(s)
Fixed Versions:
3.1.134.0.0-rc.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pion/dtls
Go
≥ 1.2.2
≤ 1.5.4
github.com/pion/dtls/v2
Go
≥ 2.0.0
≤ 2.2.12
github.com/pion/dtls/v3
Go
≥ 3.0.0
< 3.1.13
3.1.13
github.com/pion/dtls/v4
Go
< 4.0.0-rc.6
4.0.0-rc.6

References

Frequently Asked Questions

What is CVE-2026-135393?
CVE-2026-135393 is a security vulnerability in Pion DTLS involving Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes under CWE-400: Uncontrolled Resource Consumption.
Which Pion DTLS versions are affected?
Affected versions include releases prior to 3.1.13, 4.0.0-rc.6 across affected packages: github.com/pion/dtls, github.com/pion/dtls/v2, github.com/pion/dtls/v3, github.com/pion/dtls/v4.
What version fixes CVE-2026-135393?
Upgrading to 3.1.13, 4.0.0-rc.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pion/dtls affected?
Yes, github.com/pion/dtls is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/pion/dtls/v2 affected?
Yes, github.com/pion/dtls/v2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-135393?
CVE-2026-135393 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2026-135393?
Run the dependency tree command: 'inspect dependencies for github.com/pion/dtls'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qpgj-64qg-5m4r",
  "modified" : "2026-12-02T23:35:08Z",
  "published" : "2026-12-02T23:35:08Z",
  "aliases" : [ "CVE-2026-135393" ],
  "summary" : "Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes",
  "details" : "### Summary\n\nPion DTLS could repeatedly process a client's certificate flight while waiting for the client's Finished message.\nA malicious client could withhold Finished and send additional handshake traffic, causing the server to repeat certificate processing and cryptographic verification for the same handshake. Repeated or concurrent attempts could consume excessive CPU resources and reduce service availability.\n\nDiscovered by Anthropic's OSS Scanner, tracking ID `E9EALMAT`.\n\n### Details\n\nThe server's handshake state machine did not distinguish between successfully processing the client's certificate flight and completing the handshake.\n\nWhile waiting for Finished, additional incoming handshake traffic could cause the server to revisit cached Certificate, ClientKeyExchange, and CertificateVerify messages. This repeated work could include certificate parsing, handshake signature verification, and certificate-chain verification, depending on the configured authentication policy.\n\n### Impact\n\nAn attacker can make the server repeat expensive operations without completing a new handshake for each operation. This can consume CPU resources and delay legitimate connections. pion/webrtc applications are affected when operating as the DTLS server. \n\nFixed by https://github.com/pion/dtls/commit/979ad79d by processing the client certificate flight once per handshake.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.2"
      }, {
        "last_affected" : "1.5.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "last_affected" : "2.2.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-rc.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/security/advisories/GHSA-qpgj-64qg-5m4r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-135393"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/pull/1229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/979ad79d96dacc69c6c2821808f9b079301067d4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/a0f0f8a7222e03d934e17abf1772764df825237a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pion/dtls"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/releases/tag/v3.1.13"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-02T23:35:08Z",
    "nvd_published_at" : "2026-11-24T17:18:24Z"
  }
}