GHSA-967g-cjx4-h7j6: Duplicate Advisory Go-codec-dagpb Vulnerable To Panic When Vulnerability

HIGH
CVSS 7.0
CWE-119
Published
Advisory Summary

GHSA-967g-cjx4-h7j6 is a HIGH (CVSS 7.0) go-codec-dagpb vulnerable to panic when vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves go-codec-dagpb vulnerable to panic when decoding invalid blocks. Remediation is available by upgrading affected packages to version 1.3.1.

GHSA-967g-cjx4-h7j6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-967g-cjx4-h7j6
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.0

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:L/I:L/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 Low (C:L)
Integrity Low (I:L)
Availability High (A:H)

How to Fix GHSA-967g-cjx4-h7j6

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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/ipld/go-codec-dagpb fixed: 1.3.1
Upgrade github.com/ipld/go-codec-dagpb to 1.3.1
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/ipld/go-codec-dagpb

How to Check if You Are Affected

To determine whether your application is affected by GHSA-967g-cjx4-h7j6, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/ipld/go-codec-dagpb

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-g3vv-g2j5-45f2. This link is maintained to preserve external references. ## Original Description go-codec-dagpb is an implementation of the DAG-PB spec for Go. The dag-pb codec can panic when decoding invalid blocks. This issue has been patched in version 1.3.1.

GHSA-967g-cjx4-h7j6 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.3.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ipld/go-codec-dagpb
Go
< 1.3.1
1.3.1

References

Frequently Asked Questions

What is GHSA-967g-cjx4-h7j6?
GHSA-967g-cjx4-h7j6 is a security vulnerability in Duplicate Advisory involving go-codec-dagpb vulnerable to panic when decoding invalid blocks under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.3.1 across affected packages: github.com/ipld/go-codec-dagpb.
What version fixes GHSA-967g-cjx4-h7j6?
Upgrading to 1.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ipld/go-codec-dagpb affected?
Yes, github.com/ipld/go-codec-dagpb is affected in releases prior to 1.3.1. Upgrade your dependency to 1.3.1 or later.
What is the CVSS score of GHSA-967g-cjx4-h7j6?
GHSA-967g-cjx4-h7j6 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H.
What CWE is associated with GHSA-967g-cjx4-h7j6?
GHSA-967g-cjx4-h7j6 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Go dependencies for GHSA-967g-cjx4-h7j6?
Run the dependency tree command: 'inspect dependencies for github.com/ipld/go-codec-dagpb'. 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-967g-cjx4-h7j6",
  "modified" : "2026-01-23T22:34:00Z",
  "published" : "2022-12-28T00:30:23Z",
  "withdrawn" : "2026-01-23T22:34:00Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: go-codec-dagpb vulnerable to panic when decoding invalid blocks",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-g3vv-g2j5-45f2. This link is maintained to preserve external references.\n\n## Original Description\ngo-codec-dagpb is an implementation of the DAG-PB spec for Go. The dag-pb codec can panic when decoding invalid blocks. This issue has been patched in version 1.3.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ipld/go-codec-dagpb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2584"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ipld/go-codec-dagpb/commit/a17ace35cc760a2698645c09868f9050fa219f57"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0422"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/ipld/go-codec-dagpb"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-29T01:51:36Z",
    "nvd_published_at" : "2022-12-27T22:15:00Z"
  }
}