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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| abi_stable (crates.io) | before 0.9.1, from 0.0.0-0 before 0.9.1 | GitHub Advisory Database, RustSec Advisory Database |
| abi_stable_project abi_stable | before 0.9.1 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2020-0105.html | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36212 | advisory | |
| https://github.com/rodrimati1992/abi_stable_crates/issues/44 | report, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36213 | advisory | |
| https://crates.io/crates/abi_stable | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36213 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vq23-5h4f-vwpv changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-wqxc-qrq4-w5v4 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0105 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36213 changed 2026-06-17 | Public domain |