Integer Overflow in Rust's Zip Library Can Lead to Buffer Overflow
CVE-2021-28879

9.8CRITICAL

Key Information:

Vendor

Rust-lang

Status
Vendor
CVE Published:
11 April 2021

Badges

👾 Exploit Exists🟡 Public PoC

Key facts: CVE-2021-28879 is a critical severity (CVSS 9.8) vulnerability in Rust-lang Rust. It is known to be exploited in the wild. 1 public proof-of-concept exploit is available. Its EPSS score is 2.4%, the estimated probability of exploitation in the next 30 days.

What is CVE-2021-28879?

The Zip implementation within Rust's standard library, prior to version 1.52.0, contains a flaw that can manifest as an integer overflow when processing Zip file sizes. This can result in the library returning an erroneous size, which may ultimately lead to a buffer overflow vulnerability if a Zip iterator that has already been consumed is reused. Consequently, this issue poses significant security risks, making it essential for users to update to the patched version to mitigate potential exploits.

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

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

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.