CVE-2020-36213
JSON

7.5high

Update unsound DrainFilter and RString::retain

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.37% (higher than 72% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-vq23-5h4f-vwpvGHSA-wqxc-qrq4-w5v4RUSTSEC-2020-0105

Description

An issue was discovered in the abi_stable crate before 0.9.1 for Rust. A retain call can create an invalid UTF-8 string, violating soundness.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
abi_stable (crates.io)before 0.9.1, from 0.0.0-0 before 0.9.1GitHub Advisory Database, RustSec Advisory Database
abi_stable_project abi_stablebefore 0.9.1NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

An issue was discovered in the abi_stable crate before 0.9.1 for Rust. A retain call can create an invalid UTF-8 string, violating soundness.

GitHub Advisory Database

An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.

RustSec Advisory Database

Affected versions of this crate contained code from the Rust standard library that contained soundness bugs rust-lang/rust#60977 (double drop) & rust-lang/rust#78498 (create invalid utf-8 string).

The flaw was corrected in v0.9.1 by making a similar fix to the one made in the Rust standard library.

NVD (es)

Se detectó un problema en la crate abi_stable versiones anteriores a 0.9.1 para Rust. Una llamada de retención puede crear una cadena UTF-8 no válida, violando la solidez

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-36213 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vq23-5h4f-vwpv changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-wqxc-qrq4-w5v4 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0105 changed 2023-11-08CC0-1.0
NVDCVE-2020-36213 changed 2026-06-17Public domain