Memory Safety Vulnerability in Rust Library Affecting String Handling
CVE-2020-36317

7.5HIGH

Key Information:

Vendor

Rust-lang

Status
Vendor
CVE Published:
11 April 2021

Key facts: CVE-2020-36317 is a high severity (CVSS 7.5) vulnerability in Rust-lang Rust. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.4%, the estimated probability of exploitation in the next 30 days.

What is CVE-2020-36317?

The standard library in Rust prior to version 1.49.0 contains a memory safety issue in the String::retain() function, which can be triggered when the provided closure panics. This flaw may lead to the creation of a non-UTF-8 encoded string, raising concerns when other string APIs operate under the assumption of UTF-8 encoding. The potential ramifications of this vulnerability include memory safety violations, which can compromise the integrity of data handling in Rust applications.

References

  • CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
Browse all analysed vulnerabilities ›

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.