GitHub Advisory Database
GHSA-w5cr-frph-hw7f
Use of uninitialized buffer in rkyv
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | rkyv | All versions before 0.6.0 (fixed in 0.6.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-31919
- https://github.com/djkoloski/rkyv/issues/113
- https://github.com/djkoloski/rkyv/commit/9c65ae9c2c67dd949b5c3aba9b8eba6da802ab7e
- https://github.com/djkoloski/rkyv/commit/f141b560523a20557db6540576d153010bd18712
- https://rustsec.org/advisories/RUSTSEC-2021-0054.html