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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rkyv (crates.io) | before 0.6.0, from 0.0.0-0 before 0.6.0 | GitHub Advisory Database, RustSec Advisory Database |
| rkyv_project rkyv | before 0.6.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31919 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5cr-frph-hw7f changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0054 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-31919 changed 2026-06-17 | Public domain |