{"id":"CVE-2020-35865","aliases":["GHSA-q948-x8rf-888m","RUSTSEC-2020-0012"],"url":"https://o3.security/vulnerability/CVE-2020-35865","summary":"os_str_bytes relies on undefined behavior of `char::from_u32_unchecked`","details":"The Windows implementation of this crate relied on the behavior of std::char::from_u32_unchecked when its safety clause is violated. Even though this worked with Rust versions up to 1.42 (at least), that behavior could change with any new Rust version, possibly leading a security issue.\n\nThe flaw was corrected in version 2.0.0.","published":"2020-12-31T10:15:15.223Z","modified":"2026-07-09T00:13:50.268179Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"os_str_bytes","fixedVersion":"2.0.0"}],"fix":{"url":"https://github.com/dylni/os_str_bytes/pull/1","label":"dylni/os_str_bytes#1"},"references":[{"type":"FIX","url":"https://rustsec.org/advisories/RUSTSEC-2020-0012.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35865"},{"type":"WEB","url":"https://github.com/dylni/os_str_bytes/pull/1"},{"type":"PACKAGE","url":"https://github.com/dylni/os_str_bytes"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T00:13:50.268179Z"}}