9.8critical
Use of Uninitialized Resource in libp2p-deflate
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.23% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-gvcp-948f-8f2pRUSTSEC-2020-0123
Description
An issue was discovered in the libp2p-deflate crate before 0.27.1 for Rust. An uninitialized buffer is passed to AsyncRead::poll_read(), which is a user-provided trait function.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| libp2p-deflate (crates.io) | before 0.27.1, from 0.0.0-0 before 0.27.1 | GitHub Advisory Database, RustSec Advisory Database |
| libp2p libp2p-deflate | before 0.27.1 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
An issue was discovered in the libp2p-deflate crate before 0.27.1 for Rust. An uninitialized buffer is passed to AsyncRead::poll_read(), which is a user-provided trait function.
RustSec Advisory Database
Affected versions of this crate passes an uninitialized buffer to a user-provided trait function AsyncRead::poll_read().
Arbitrary AsyncRead::poll_read() implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.
Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
The flaw was fixed in commit 5ba266a by ensuring the newly allocated part of the buffer is zero-initialized before passing it to a user-provided AsyncRead::poll_read().
NVD (es)
Se ha detectado un problema en la crate libp2p-deflate versiones anteriores a 0.27.1 para Rust. Es pasado un buffer no inicializado a la función AsyncRead::poll_read(), que es una función trait proporcionada por el usuario
References
| https://rustsec.org/advisories/RUSTSEC-2020-0123.html | advisory, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libp2p-deflate/RUSTSEC-2020-0123.md | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36443 | advisory | |
| https://github.com/libp2p/rust-libp2p | package | |
| https://crates.io/crates/libp2p-deflate | package | |
| https://github.com/libp2p/rust-libp2p/issues/1932 | report | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36443 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gvcp-948f-8f2p changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0123 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36443 changed 2026-06-17 | Public domain |