CVE-2021-26305 Read of uninitialized memory in cdr
A flaw in the Rust cdr crate allows attackers to read uninitialized heap memory, potentially exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-26305?
CVE-2021-26305 is a critical vulnerability in n/a, published on 29 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust. A user-provided Read implementation can gain access to the old contents of newly allocated heap memory, violating soundness.
Weakness: CWE-908
Which versions are affected by CVE-2021-26305?
3 open source packages ship an affected version, including cdr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
cdr crates.io | All versions | 0.2.4 |
cdr crates.io | All versions | 0.2.4 |
cdr crates.io | From 0.0.0-0 | 0.2.4 |
Products include Cdr Project Cdr.
How do I fix CVE-2021-26305?
Upgrade cdr to 0.2.4 or later.
Is CVE-2021-26305 being exploited?
There is no known exploitation of CVE-2021-26305 in the wild and no public exploit code.
Sources
Also known as GHSA-37jj-wp7g-7wj4, RUSTSEC-2021-0012.