GHSA-4xgv-j62q-h3rj: Github.com/pion/dtls Panic During Unmarshal Of Hello Vulnerability

MODERATE
CVSS 5.9
Published
Advisory Summary

GHSA-4xgv-j62q-h3rj is a MODERATE (CVSS 5.9) panic during unmarshal of hello vulnerability (General Security Weakness) 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-4xgv-j62q-h3rj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4xgv-j62q-h3rj
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification General Security Weakness
Affected Product Github.com/pion/dtls
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-4xgv-j62q-h3rj

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.

github.com/pion/dtls fixed: Latest secure release
Upgrade github.com/pion/dtls to Latest secure release
github.com/pion/dtls/v2 fixed: 2.2.4
Upgrade github.com/pion/dtls/v2 to 2.2.4
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 GHSA-4xgv-j62q-h3rj, 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 General Security Weakness. 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

### Impact During the unmarshalling of a hello verify request we could try to unmarshal into too small a buffer. is could result in a panic leading the program to crash. This issue could be abused to cause a denial of service. ### Workaround None, upgrade to 2.2.4

GHSA-4xgv-j62q-h3rj Affected Github.com/pion/dtls Versions

2 component(s)
Fixed Versions:
2.2.4
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-4xgv-j62q-h3rj?
GHSA-4xgv-j62q-h3rj is a security vulnerability in Github.com/pion/dtls involving Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2 under General Security Weakness.
Which Github.com/pion/dtls versions are affected?
Affected versions include releases prior to 2.2.4 across affected packages: github.com/pion/dtls, github.com/pion/dtls/v2.
What version fixes GHSA-4xgv-j62q-h3rj?
Upgrading to 2.2.4 (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 2.2.4. Upgrade your dependency to 2.2.4 or later.
What is the CVSS score of GHSA-4xgv-j62q-h3rj?
GHSA-4xgv-j62q-h3rj has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-4xgv-j62q-h3rj?
GHSA-4xgv-j62q-h3rj is classified under General Security Weakness.
How can I check Go dependencies for GHSA-4xgv-j62q-h3rj?
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-4xgv-j62q-h3rj",
  "modified" : "2023-06-13T23:50:39Z",
  "published" : "2023-02-07T18:36:47Z",
  "aliases" : [ ],
  "summary" : "Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2",
  "details" : "### Impact\n\nDuring the unmarshalling of a hello verify request we could try to unmarshal into too small a buffer. is 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, upgrade to 2.2.4\n",
  "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-4xgv-j62q-h3rj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/a50d26c5e4eed2ca87509494ffef2d2ebd22b1eb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pion/dtls"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2023-1534"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-07T18:36:47Z",
    "nvd_published_at" : null
  }
}