Buffer Overflow Vulnerability in Rust Standard Library
CVE-2021-28875

7.5HIGH

Key Information:

Vendor

Rust-lang

Status
Vendor
CVE Published:
11 April 2021

Key facts: CVE-2021-28875 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 2.1%, the estimated probability of exploitation in the next 30 days.

What is CVE-2021-28875?

In the Rust programming language, prior to version 1.50.0, a vulnerability exists in the standard library's read_to_end() function. This function fails to properly validate return values from the Read trait in potentially unsafe contexts, which may allow for a buffer overflow. Exploitation of this vulnerability can lead to unpredictable behavior, including injection of malicious code into memory. Developers using affected versions of Rust are advised to update to ensure the integrity and security of their 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

.