CVE-2021-25905
JSON

9.1critical

Out of bounds read in bra

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
1.66% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-j8qq-58cr-8cc7RUSTSEC-2021-0008

Description

An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
bra (crates.io)before 0.1.1, from 0.0.0-0 before 0.1.1GitHub Advisory Database, RustSec Advisory Database
bra_project brabefore 0.1.1NVD

All scores

GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
RustSec Advisory Database9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P

Classification

What each source says

CVE List

An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.

GitHub Advisory Database

Buffered Random Access (BRA) provides easy random memory access to a sequential source of data in Rust. This is achieved by greedily retaining all memory read from a given source. Buffered Random Access (BRA) provides easy random memory access to a sequential source of data in Rust. An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.

RustSec Advisory Database

Affected versions of this crate creates an uninitialized buffer and passes it to user-provided Read implementation.

This is unsound, because it allows safe Rust code to exhibit an undefined behavior (read from uninitialized memory).

The flaw was corrected in version 0.1.1 by zero-initializing a newly allocated buffer before handing it to a user-provided Read implementation.

NVD (es)

Se detectó un problema en la crate bra versiones anteriores a 0.1.1 para Rust. Carece de solidez porque puede leer la memoria no inicializada

References

Sources

SourceRecordLicence
CVE ListCVE-2021-25905 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-j8qq-58cr-8cc7 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0008 changed 2023-11-08CC0-1.0
NVDCVE-2021-25905 changed 2026-06-17Public domain