GHSA-g3vv-g2j5-45f2

    Dashboard / Vulnerabilities / GHSA-g3vv-g2j5-45f2

    GHSA-g3vv-g2j5-45f2

    Published: 8 Apr 2022Last Modified: 3 Feb 2026

    Summary: ipld/go-codec-dagpb panics when processing certain blocks

    Details: ### Impact Decoding certain blocks using the go-ipld-prime version of the dag-pb codec (go-codec-dagpb) can cause a panic. The panic comes from an assumption that the reported link length is accurate, but if the block ends before that reported length then it’s a buffer overread. ### Patches The issue is fixed in v1.3.1 and above. Consumers can discover the versions of `go-codec-dagpb` in a module's dependency graph using the following command in the module root: ```go mod graph | grep go-codec-dagpb``` ### Workarounds You can work around this issue without upgrading by recovering panics higher in the call stack of the goroutine that calls the defective code. ### For more information If you have any questions or comments about this advisory: * Ask in [IPFS Discord #ipld-chatter](https://discord.gg/ipfs) * Open an issue in [go-codec-dagpb](https://github.com/ipld/go-codec-dagpb)

    Affected packages

    Package

    Name: github.com/ipld/go-codec-dagpb

    Purl: pkg:golang/github.com/ipld/go-codec-dagpb

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.3.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-g3vv-g2j5-45f2 | CVE-DB