{"id":"CVE-2020-35909","aliases":["EUVD-2021-1742","GHSA-h7qh-3h6f-w79p","RUSTSEC-2020-0068"],"status":"published","title":"Unexpected panic in multihash","description":"An issue was discovered in the multihash crate before 0.11.3 for Rust. The from_slice parsing code can panic via unsanitized data from a network server.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01388,"percentile":0.72496,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2020-11-08T12:00:00Z","modified":"2026-11-10T02:30:22Z","fixes":[{"ecosystem":"crates.io","package":"multihash","fixed_in":["0.11.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"multihash","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"multihash","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.11.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"multihash","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.11.3"}]}]}],"products":[{"vendor":"protocol","product":"multihash"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0068.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35909","tags":["advisory"]},{"url":"https://github.com/multiformats/rust-multihash/pull/72","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h7qh-3h6f-w79p"},{"url":"https://github.com/multiformats/rust-multihash","tags":["package"]},{"url":"https://crates.io/crates/multihash","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35909","description":"An issue was discovered in the multihash crate before 0.11.3 for Rust. The from_slice parsing code can panic via unsanitized data from a network server.","status":"published","published":"2020-12-31T08:20:32Z","modified":"2024-08-04T17:16:13.18Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2021-1742","description":"An issue was discovered in the multihash crate before 0.11.3 for Rust. The from_slice parsing code can panic via unsanitized data from a network server.","status":"published","published":"2020-12-31T08:20:32Z","modified":"2024-08-04T17:16:13Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-h7qh-3h6f-w79p","title":"Unexpected panic in multihash","description":"In versions prior 0.11.3 it's possible to make from_slice panic by feeding it certain malformed input. It's never documented that from_slice (and from_bytes which wraps it) can panic, and its' return type (Result\u003cSelf, DecodeError\u003e) suggests otherwise. In practice, from_slice/from_bytes is frequently used in networking code and is being called with unsanitized data from untrusted sources. This can allow attackers to cause DoS by causing an unexpected panic in the network client's code..","status":"published","published":"2021-08-25T20:49:41Z","modified":"2023-06-13T20:05:18Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2020-35909","description":"An issue was discovered in the multihash crate before 0.11.3 for Rust. The from_slice parsing code can panic via unsanitized data from a network server.","status":"published","published":"2020-12-31T09:15:15.347Z","modified":"2026-06-17T03:14:35.11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.8,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"CVE-2020-35909","description":"An issue was discovered in the multihash crate before 0.11.3 for Rust. The from_slice parsing code can panic via unsanitized data from a network server.","status":"published","published":"2020-12-31T09:15:15.347Z","modified":"2026-11-10T02:30:22.893999678Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-10T02:46:01.671363Z"},{"id":"GHSA-h7qh-3h6f-w79p","title":"Unexpected panic in multihash","description":"In versions prior 0.11.3 it's possible to make from_slice panic by feeding it certain malformed input. It's never documented that from_slice (and from_bytes which wraps it) can panic, and its' return type (Result\u003cSelf, DecodeError\u003e) suggests otherwise. In practice, from_slice/from_bytes is frequently used in networking code and is being called with unsanitized data from untrusted sources. This can allow attackers to cause DoS by causing an unexpected panic in the network client's code..","status":"published","published":"2021-08-25T20:49:41Z","modified":"2023-11-08T04:03:38.79677Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"RUSTSEC-2020-0068","title":"Unexpected panic in multihash `from_slice` parsing code","description":"In versions prior 0.11.3 it's possible to make `from_slice` panic by feeding it certain malformed input.\nIt's never documented that `from_slice` (and `from_bytes` which wraps it) can panic, and its' return type (`Result\u003cSelf, DecodeError\u003e`) suggests otherwise.\n\nIn practice, `from_slice`/`from_bytes` is frequently used in networking code (for example [in rust-libp2p](https://github.com/libp2p/rust-libp2p/blob/7b415d5e7040e45c541f76f2c409e63d4d3249c6/core/src/peer_id.rs#L89)) and is being called with unsanitized data from untrusted sources.\nThis can allow attackers to cause DoS by causing an unexpected `panic` in the network client's code.","status":"published","published":"2020-11-08T12:00:00Z","modified":"2023-11-08T04:03:38.79677Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
