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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| arenavec (crates.io) | up to 0.1.1, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| arenavec_project arenavec | up to 2021-01-12 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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. A veces, una perdida de la memoria no inicializada puede ocurrir tras un pánico en la función T::default().
References
| https://rustsec.org/advisories/RUSTSEC-2021-0040.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29930 | advisory | |
| https://github.com/ibabushkin/arenavec/issues/1 | report, web | |
| https://github.com/ibabushkin/arenavec | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29931 | advisory | |
| https://crates.io/crates/arenavec | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29930 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-327x-39hh-65wf changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-955p-rc5h-hg6h changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0040 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-29930 changed 2026-06-17 | Public domain |