Advisory

GO-2022-1155

Also known as: CVE-2022-23495, GHSA-x39j-h85h-3f46

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.

Severity

Not rated by the source.

Dates

Published
2022-12-22 17:41 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/ipfs/go-merkledag

Go · All systems

Affected

  • introduced 0.4.0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences