blob: 466d8acdd0212478040377d11961b175fd98492f [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-1155",
"published": "0001-01-01T00:00:00Z",
"modified": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2022-23495",
"GHSA-x39j-h85h-3f46"
],
"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.\n\nAdditionally, 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.",
"affected": [
{
"package": {
"name": "github.com/ipfs/go-merkledag",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.4.0"
},
{
"fixed": "0.8.1"
}
]
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-1155"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/ipfs/go-merkledag",
"symbols": [
"ProtoNode.AddNodeLink",
"ProtoNode.AddRawLink",
"ProtoNode.AsBool",
"ProtoNode.AsBytes",
"ProtoNode.AsFloat",
"ProtoNode.AsInt",
"ProtoNode.AsLink",
"ProtoNode.AsString",
"ProtoNode.Cid",
"ProtoNode.EncodeProtobuf",
"ProtoNode.IsAbsent",
"ProtoNode.IsNull",
"ProtoNode.Kind",
"ProtoNode.Length",
"ProtoNode.ListIterator",
"ProtoNode.Loggable",
"ProtoNode.LookupByIndex",
"ProtoNode.LookupByNode",
"ProtoNode.LookupBySegment",
"ProtoNode.LookupByString",
"ProtoNode.MapIterator",
"ProtoNode.Marshal",
"ProtoNode.Multihash",
"ProtoNode.RawData",
"ProtoNode.SetCidBuilder",
"ProtoNode.SetLinks",
"ProtoNode.Size",
"ProtoNode.Stat",
"ProtoNode.String",
"ProtoNode.UnmarshalJSON",
"ProtoNode.UpdateNodeLink",
"ProtoNode.marshalImmutable"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/ipfs/go-merkledag/security/advisories/GHSA-x39j-h85h-3f46"
},
{
"type": "REPORT",
"url": "https://github.com/ipfs/kubo/issues/9297"
},
{
"type": "REPORT",
"url": "https://github.com/ipfs/go-merkledag/issues/90"
},
{
"type": "FIX",
"url": "https://github.com/ipfs/go-merkledag/pull/91"
},
{
"type": "FIX",
"url": "https://github.com/ipfs/go-merkledag/pull/92"
},
{
"type": "FIX",
"url": "https://github.com/ipfs/go-merkledag/pull/93"
}
],
"credits": [
{
"name": "@mrd0ll4r (https://github.com/mrd0ll4r)"
}
]
}