GitHub Advisoryadvisory · crates.io

GHSA-h7qh-3h6f-w79p Unexpected panic in multihash

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2020-35909
Ecosystem
crates.io
Packages
multihash
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-20
Reviewed
2021-08-19

Affected packages

• crates.io multihash: < 0.11.3 → fixed in 0.11.3

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) 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..

Related

Alias · CVE (1)

  • CVE-2020-35909 An issue was discovered in the multihash crate before 0.11.3 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References