CVE-2021-26305 Read of uninitialized memory in cdr

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
cdr crates.ioAll versions0.2.4
cdr crates.ioAll versions0.2.4
cdr crates.ioFrom 0.0.0-00.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.

Is CVE-2021-26305 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free