CVE-2021-31919 Use of uninitialized buffer in rkyv
Attackers can read uninitialized memory from serialized archives in the rkyv Rust library, 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-31919?
CVE-2021-31919 is a high-severity vulnerability in n/a, published on 30 Apr 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 rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.
Weakness: CWE-909
Which versions are affected by CVE-2021-31919?
3 open source packages ship an affected version, including rkyv. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rkyv crates.io | All versions | 0.6.0 |
rkyv crates.io | All versions | 0.6.0 |
rkyv crates.io | From 0.0.0-0 | 0.6.0 |
Products include Rkyv Project Rkyv.
How do I fix CVE-2021-31919?
Upgrade rkyv to 0.6.0 or later.
Is CVE-2021-31919 being exploited?
There is no known exploitation of CVE-2021-31919 in the wild and no public exploit code.
Sources
Also known as GHSA-w5cr-frph-hw7f, RUSTSEC-2021-0054.