CVE-2021-31919
JSON

7.5high

Use of uninitialized buffer in rkyv

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.08% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-w5cr-frph-hw7fRUSTSEC-2021-0054

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rkyv (crates.io)before 0.6.0, from 0.0.0-0 before 0.6.0GitHub Advisory Database, RustSec Advisory Database
rkyv_project rkyvbefore 0.6.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

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.

RustSec Advisory Database

rkyv is a serialization framework that writes struct-compatible memory to be stored or transmitted. During serialization, struct padding bytes and unused enum bytes may not be initialized. These bytes may be written to disk or sent over unsecured channels.

NVD (es)

Se detectó un problema en la crate rkyv versiones anteriores a 0.6.0 para Rust. Cuando es creado un archivo por medio de una serialización, el contenido del archivo puede contener valores no inicializados de determinadas partes de una estructura.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-31919 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-w5cr-frph-hw7f changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0054 changed 2023-11-08CC0-1.0
NVDCVE-2021-31919 changed 2026-06-17Public domain