CVE-2021-29930
JSON

7.5high

Out of bounds write in arenavec

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.18% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-327x-39hh-65wfGHSA-955p-rc5h-hg6hRUSTSEC-2021-0040

Description

An issue was discovered in the arenavec crate through 2021-01-12 for Rust. A drop of uninitialized memory can sometimes occur upon a panic in T::default().

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
arenavec (crates.io)up to 0.1.1, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
arenavec_project arenavecup to 2021-01-12NVD

All scores

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

Classification

What each source says

CVE List

An issue was discovered in the arenavec crate through 2021-01-12 for Rust. A drop of uninitialized memory can sometimes occur upon a panic in T::default().

GitHub Advisory Database

An issue was discovered in the arenavec crate through 0.1.1. A drop of uninitialized memory can sometimes occur upon a panic in T::default()

GitHub Advisory Database

Affected versions of this crate did not guard against potential panics that may happen from user-provided functions T::default() and T::drop().

Panic within T::default() leads to dropping uninitialized T, when it is invoked from common::Slice::<T, H>::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::<T, H>::resize_with() or common::SliceVec::<T, H>::resize()

Either case causes memory corruption in the heap memory.

RustSec Advisory Database

Affected versions of this crate did not guard against potential panics that may happen from user-provided functions T::default() and T::drop().

Panic within T::default() leads to dropping uninitialized T, when it is invoked from common::Slice::<T, H>::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::<T, H>::resize_with() or common::SliceVec::<T, H>::resize()

Either case causes memory corruption in the heap memory.

NVD (es)

Se detectó un problema en la crate arenavec hasta el 12 de enero de 2021 para Rust.&#xa0;A veces, una perdida de la memoria no inicializada puede ocurrir tras un pánico en la función T::default().

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-29930 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-327x-39hh-65wf changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-955p-rc5h-hg6h changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0040 changed 2023-11-08CC0-1.0
NVDCVE-2021-29930 changed 2026-06-17Public domain