{"id":"CVE-2020-36212","aliases":["EUVD-2021-1901","GHSA-vq23-5h4f-vwpv","RUSTSEC-2020-0105"],"status":"published","title":"Update unsound DrainFilter and RString::retain","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.0143,"percentile":0.7324,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-172","CWE-672"],"published":"2020-12-21T12:00:00Z","modified":"2026-10-24T10:30:52Z","fixes":[{"ecosystem":"crates.io","package":"abi_stable","fixed_in":["0.9.1"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"abi_stable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"abi_stable","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"crates.io","package":"abi_stable","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"crates.io","package":"abi_stable","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.1"}]}],"bundled":2}],"products":[{"vendor":"abi_stable_project","product":"abi_stable"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0105.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","evidence","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36212","tags":["advisory"]},{"url":"https://github.com/rodrimati1992/abi_stable_crates/issues/44","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-vq23-5h4f-vwpv"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36213","tags":["advisory"]},{"url":"https://crates.io/crates/abi_stable","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36212","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-01-22T09:05:21Z","modified":"2024-08-04T17:23:09.695Z","updated_at":"2026-11-02T14:35:54.80237Z"}],"euvd":[{"id":"EUVD-2021-1901","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-01-22T09:05:21Z","modified":"2024-08-04T17:23:09Z","updated_at":"2026-11-03T03:07:03.484914Z"}],"ghsa":[{"id":"GHSA-vq23-5h4f-vwpv","title":"Update unsound DrainFilter and RString::retain","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-08-25T21:01:35Z","modified":"2023-02-03T05:06:15Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-672"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2020-36212","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-01-26T18:15:56.147Z","modified":"2026-06-17T03:15:01.307Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:30.596418Z"}],"osv":[{"id":"CVE-2020-36212","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-01-26T18:15:56.147Z","modified":"2026-10-24T10:30:52.096004264Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"CVE-2020-36213","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.","status":"published","published":"2021-01-26T18:15:56.207Z","modified":"2026-10-24T10:30:40.148847881Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"GHSA-vq23-5h4f-vwpv","title":"Update unsound DrainFilter and RString::retain","description":"An issue was discovered in the abi_stable crate before 0.9.1 for Rust. DrainFilter lacks soundness because of a double drop.","status":"published","published":"2021-08-25T21:01:35Z","modified":"2023-11-08T04:03:41.840994Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-672"],"updated_at":"2026-11-02T15:46:57.694388Z"},{"id":"GHSA-wqxc-qrq4-w5v4","title":"Update unsound DrainFilter and RString::retain","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.","status":"published","published":"2021-08-25T21:01:33Z","modified":"2023-11-08T04:03:41.840994Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-172"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"RUSTSEC-2020-0105","title":"Update unsound DrainFilter and RString::retain","description":"Affected versions of this crate contained code from the Rust standard library that contained soundness bugs rust-lang/rust#60977 (double drop) \u0026 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.","status":"published","published":"2020-12-21T12:00:00Z","modified":"2023-11-08T04:03:41.840994Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
