CVE-2020-36443
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
libp2p-deflate (crates.io)before 0.27.1, from 0.0.0-0 before 0.27.1GitHub Advisory Database, RustSec Advisory Database
libp2p libp2p-deflatebefore 0.27.1NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2020-36443 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-gvcp-948f-8f2p changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0123 changed 2023-11-08CC0-1.0
NVDCVE-2020-36443 changed 2026-06-17Public domain