CVE-2021-26305

An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust

published January 29, 2021

CVSS
—
EPSS
2%
Percentile
76.9
In the wild
Unconfirmed
What it is

⚠️ A crafty Read implementation might just reveal hidden data! In the cdr crate before version 0.2.4, it’s like peeking inside a mystery box you just opened—what's left behind could be anything! Think of it like a diner that never cleans the tables: every new customer might find remnants of past meals left behind. If a well-crafted Read implementation can access the old contents of newly allocated heap memory, it raises serious concerns about data privacy and integrity. An attacker exploiting this vulnerability could gain unauthorized access to sensitive data that should be securely wiped from memory, leading to potential information leaks. While the immediate exploitation isn't known, the soundness of your Rust applications may be at risk.

Put simply

Think of it like a diner that never cleans the tables: every new customer might find remnants of past meals left behind. If a well-crafted Read implementation can access the old contents of newly allocated heap memory, it raises serious concerns about data privacy and integrity. This vulnerability in the cdr crate allows a user-provided Read implementation to access old data from newly allocated heap memory due to inadequate cleanup, hence violating memory soundness.

What to do

An attacker exploiting this vulnerability could gain unauthorized access to sensitive data that should be securely wiped from memory, leading to potential information leaks. While the immediate exploitation isn't known, the soundness of your Rust applications may be at risk. Upgrade the cdr crate to version 0.2.4 or later to mitigate this risk. Additionally, review your application’s usage of the Read trait to ensure no historical data is left accessible unintentionally. You've got this! Patch up and keep your Rust projects secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01688 · 76.9th percentile
Published
2021-01-29T02:27Z
EPSS history
Timeline
  • 29 JAN 02:27Z
    An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust
    cvelistv5