CVE-2021-45706 Memory flaw in zeroize_derive
Attackers can read sensitive data from memory because the zeroize_derive crate fails to zero out dropped enum variants.
- 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-45706?
CVE-2021-45706 is a critical vulnerability in n/a, published on 26 Dec 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 the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.
Weakness: CWE-459
Which versions are affected by CVE-2021-45706?
3 open source packages ship an affected version, including zeroize_derive. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
zeroize_derive crates.io | All versions | 1.1.1 |
zeroize_derive crates.io | All versions | 1.1.1 |
zeroize_derive crates.io | From 0.0.0-0 | 1.1.1 |
Products include Zeroize Derive Project Zeroize Derive.
How do I fix CVE-2021-45706?
Upgrade zeroize_derive to 1.1.1 or later.
Is CVE-2021-45706 being exploited?
There is no known exploitation of CVE-2021-45706 in the wild and no public exploit code.
Sources
Also known as GHSA-c5hx-w945-j4pq, RUSTSEC-2021-0115.