GO-2022-1155
Dashboard / Vulnerabilities / GO-2022-1155
GO-2022-1155
Summary: Panic in github.com/ipfs/go-merkledag
Details: A ProtoNode may be modified in such a way as to cause various encode errors which will trigger a panic on common method calls that don't allow for error returns. Additionally, use of the ProtoNode.SetCidBuilder() method to set non-functioning CidBuilder (such as one that refers to a multihash where an implementation of that hash function is not available) may cause the same methods to panic as a new CID is required but cannot be created.
References: https://github.com/ipfs/go-merkledag/security/advisories/GHSA-x39j-h85h-3f46, https://github.com/ipfs/kubo/issues/9297, https://github.com/ipfs/go-merkledag/issues/90, https://github.com/ipfs/go-merkledag/pull/91, https://github.com/ipfs/go-merkledag/pull/92, https://github.com/ipfs/go-merkledag/pull/93
Affected packages
Package
Name: github.com/ipfs/go-merkledag
Purl: pkg:golang/github.com/ipfs/go-merkledag
Affected ranges
Type: SEMVER
Events:
