GHSA-qpgj-64qg-5m4r

Suggest an improvement
Source
https://github.com/advisories/GHSA-qpgj-64qg-5m4r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-qpgj-64qg-5m4r/GHSA-qpgj-64qg-5m4r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qpgj-64qg-5m4r
Aliases
Published
2026-12-02T23:35:08Z
Modified
2026-12-02T23:45:05Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-02T23:35:08Z",
    "nvd_published_at":  "2026-11-24T17:18:24Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/pion/dtls

Package

Name
github.com/pion/dtls
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls

Affected ranges

Type
SEMVER
Events
Introduced
1.2.2
Last Affected
1.5.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-qpgj-64qg-5m4r/GHSA-qpgj-64qg-5m4r.json"

Go / github.com/pion/dtls/v2

Package

Name
github.com/pion/dtls/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Last Affected
2.2.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-qpgj-64qg-5m4r/GHSA-qpgj-64qg-5m4r.json"

Go / github.com/pion/dtls/v3

Package

Name
github.com/pion/dtls/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-qpgj-64qg-5m4r/GHSA-qpgj-64qg-5m4r.json"

Go / github.com/pion/dtls/v4

Package

Name
github.com/pion/dtls/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v4

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.0.0-rc.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-qpgj-64qg-5m4r/GHSA-qpgj-64qg-5m4r.json"