High, CVSS 7.5crates.ioPublished
Unexpected panic in multihash
CVE-2020-35909 · GHSA-h7qh-3h6f-w79p
- Affected
- crates.io multihash < 0.11.3
- Fixed in
- 0.11.3· Vendor fix available
- Issue
- In versions prior 0.11.3 it's possible to make fromslice panic by feeding it certain malformed input. It's never documented that fromslice (and frombytes which wraps it) can panic, and its' return type (Result<Self, DecodeError) suggests otherwise. In practice, fromslice/frombytes 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..
Recommended action: Upgrade to 0.11.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.