{"id":"CVE-2020-36213","aliases":["CVE-2020-36213","GHSA-vq23-5h4f-vwpv","GHSA-wqxc-qrq4-w5v4","RUSTSEC-2020-0105"],"related":["CVE-2020-36212"],"kind":"vulnerability","state":"published","title":"Update unsound DrainFilter and RString::retain","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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).\n\nThe flaw was corrected in v0.9.1 by making a similar fix to the one made in the Rust standard library.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate abi_stable versiones anteriores a 0.9.1 para Rust.&#xa0;Una llamada de retención puede crear una cadena UTF-8 no válida, violando la solidez","source":"nvd"}],"published":"2020-12-21T12:00:00.000Z","modified":"2026-06-17T03:15:01.440Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-172","CWE-672"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.1"}],"ecosystem":"crates.io","package":"abi_stable","purl":"pkg:cargo/abi_stable","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.1"}],"ecosystem":"crates.io","package":"abi_stable","purl":"pkg:cargo/abi_stable","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.9.1"}],"ecosystem":"crates.io","package":"abi_stable","purl":"pkg:cargo/abi_stable","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.9.1"}],"vendor":"abi_stable_project","product":"abi_stable","cpe":"cpe:2.3:a:abi_stable_project:abi_stable:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0105.html","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36212","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rodrimati1992/abi_stable_crates/issues/44","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36213","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/abi_stable","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36213","url":"https://www.cve.org/CVERecord?id=CVE-2020-36213","licence":"CVE Terms of Use","modified":"2024-08-04T17:23:09.448Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vq23-5h4f-vwpv","url":"https://github.com/advisories/GHSA-vq23-5h4f-vwpv","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:41.840Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wqxc-qrq4-w5v4","url":"https://github.com/advisories/GHSA-wqxc-qrq4-w5v4","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:41.840Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0105","url":"https://rustsec.org/advisories/RUSTSEC-2020-0105.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:41.840Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36213","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36213","licence":"Public domain","modified":"2026-06-17T03:15:01.440Z"}],"updatedAt":"2026-11-25T22:57:57.193Z","epss":{"score":0.01374,"percentile":0.72204,"date":"2026-11-30T12:00:22.000Z"}}