Rust advisories / abi_stable
Vulnerability HighRUSTSEC-2020-0105 · abi_stable
RUSTSEC-2020-0105: Update unsound DrainFilter and RString::retain
Short answerA security vulnerability in the abi_stable crate: Update unsound DrainFilter and RString::retain. High severity (CVSS 7.5). Fixed in 0.9.1: update to a fixed version.
| Crate | abi_stable |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.9.1. |
| Fixed in | 0.9.1 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2020-12-21 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2020-36212, CVE-2020-36213, GHSA-vq23-5h4f-vwpv, GHSA-wqxc-qrq4-w5v4 |
What to do
- See which version you have:
cargo tree -i abi_stable(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p abi_stable. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleabi_stable = "0.9.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/abi_stable
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0105.html
- Report: github.com/rodrimati1992/abi_stable_crates/issues/44
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?