Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rkyv
  4. ›
  5. CVE-2021-31919

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

August 25, 2021

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.

References

  • github.com/advisories/GHSA-w5cr-frph-hw7f
  • github.com/djkoloski/rkyv/commit/9c65ae9c2c67dd949b5c3aba9b8eba6da802ab7e
  • github.com/djkoloski/rkyv/commit/f141b560523a20557db6540576d153010bd18712
  • github.com/djkoloski/rkyv/issues/113
  • nvd.nist.gov/vuln/detail/CVE-2021-31919
  • rustsec.org/advisories/RUSTSEC-2021-0054.html

Code Behaviors & Features

Detect and mitigate CVE-2021-31919 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-772: Missing Release of Resource after Effective Lifetime
  • CWE-908: Use of Uninitialized Resource

Source file

cargo/rkyv/CVE-2021-31919.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.