PT-2020-17541 · Rust · Multihash
Published
2020-11-08
·
Updated
2021-08-25
·
CVE-2020-35909
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
multihash crate versions prior to 0.11.3
Description
An issue in the multihash crate allows attackers to cause a Denial of Service (DoS) by feeding certain malformed input to the
from slice function, which can panic when called with unsanitized data from untrusted sources. This function is frequently used in networking code and its return type suggests that it should not panic, but it can when given specific input. The panic can occur when from slice (or from bytes, which wraps it) is called with data from untrusted sources, potentially allowing attackers to cause an unexpected panic in the network client's code.Recommendations
For versions prior to 0.11.3, update to version 0.11.3 or later to resolve the issue.
As a temporary workaround, consider validating and sanitizing input data before passing it to the
from slice function to minimize the risk of exploitation.Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Multihash