# CVE-2021-31919: Use of uninitialized buffer in rkyv

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-04-28T12:00:00.000Z
- Modified: 2026-06-17T03:52:29.423Z
- Also known as: GHSA-w5cr-frph-hw7f, RUSTSEC-2021-0054
- Weaknesses: CWE-772, CWE-908, CWE-909
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rkyv (crates.io): before 0.6.0; from 0.0.0-0 before 0.6.0
- rkyv_project rkyv: before 0.6.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0054.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31919> (advisory)
- <https://github.com/djkoloski/rkyv/issues/113> (report, web)
- <https://github.com/djkoloski/rkyv/commit/9c65ae9c2c67dd949b5c3aba9b8eba6da802ab7e> (web)
- <https://github.com/djkoloski/rkyv/commit/f141b560523a20557db6540576d153010bd18712> (web)
- <https://crates.io/crates/rkyv> (package)

## Sources

- CVE List: [CVE-2021-31919](https://www.cve.org/CVERecord?id=CVE-2021-31919), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-w5cr-frph-hw7f](https://github.com/advisories/GHSA-w5cr-frph-hw7f), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0054](https://rustsec.org/advisories/RUSTSEC-2021-0054.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-31919](https://nvd.nist.gov/vuln/detail/CVE-2021-31919), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31919 · Whole record: https://cve.day/CVE-2021-31919.json · Rebuilt by cve.day 2026-11-25T22:58:01.116Z
