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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| bra (crates.io) | before 0.1.1, from 0.0.0-0 before 0.1.1 | GitHub Advisory Database, RustSec Advisory Database |
| bra_project bra | before 0.1.1 | NVD |
All scores
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| RustSec Advisory Database | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 6.4medium CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2021-0008.html | advisory, exploit, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25905 | advisory | |
| https://github.com/Enet4/bra-rs/issues/1 | report, web | |
| https://github.com/Enet4/bra-rs/commit/aabf5562f8c6374ab30f615b28e0cff9b5c79e5f | web | |
| https://github.com/Enet4/bra-rs | package | |
| https://crates.io/crates/bra | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25905 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j8qq-58cr-8cc7 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0008 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-25905 changed 2026-06-17 | Public domain |