GHSA-hxp2-xqf3-v83h: Github.com/pion/dtls Panic During Unmarshal Of Hello Vulnerability
MODERATEGHSA-hxp2-xqf3-v83h is a MODERATE (CVSS 5.9) panic during unmarshal of hello vulnerability (CWE-125: Out-of-bounds Read) affecting Github.com/pion/dtls libraries in the Go ecosystem. The issue involves panic during unmarshal of hello verify request in github.com/pion/dtls/v2. Remediation is available by upgrading affected packages to version 2.2.4.
GHSA-hxp2-xqf3-v83h at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix GHSA-hxp2-xqf3-v83h
To remediate this vulnerability, upgrade all affected Github.com/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.
Upgrade github.com/pion/dtls to Latest secure release
Upgrade github.com/pion/dtls/v2 to 2.2.4
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 GHSA-hxp2-xqf3-v83h, inspect your project dependencies for Github.com/pion/dtls:
inspect dependencies for github.com/pion/dtls
Analyze the terminal output to locate any version of Github.com/pion/dtls in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.4), 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Github.com/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
GHSA-hxp2-xqf3-v83h Affected Github.com/pion/dtls Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pion/dtls
|
Go |
≤ 1.5.4
|
|
|
github.com/pion/dtls/v2
|
Go |
< 2.2.4
|
2.2.4
|
References
Frequently Asked Questions
What is GHSA-hxp2-xqf3-v83h?
Which Github.com/pion/dtls versions are affected?
What version fixes GHSA-hxp2-xqf3-v83h?
Is github.com/pion/dtls affected?
Is github.com/pion/dtls/v2 affected?
What is the CVSS score of GHSA-hxp2-xqf3-v83h?
What CWE is associated with GHSA-hxp2-xqf3-v83h?
How can I check Go dependencies for GHSA-hxp2-xqf3-v83h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hxp2-xqf3-v83h",
"modified" : "2023-06-13T23:50:59Z",
"published" : "2023-02-07T18:24:39Z",
"aliases" : [ ],
"summary" : "Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2",
"details" : "### Impact\n\nWhen attempting to unmarshal a Server Hello request we could attempt to unmarshal into a buffer that was too small. This could result in a panic leading the program to crash.\n\nThis issue could be abused to cause a denial of service.\n\n### Workaround\n\nNone",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/dtls"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.5.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/dtls/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/security/advisories/GHSA-hxp2-xqf3-v83h"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/commit/7a14903448b70069fd9e02adf210ca23083c56d2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pion/dtls"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1535"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-07T18:24:39Z",
"nvd_published_at" : null
}
}