CVE-2020-35865
HIGH 7.5CVSS 3.1os_str_bytes relies on undefined behavior of `char::from_u32_unchecked`
An issue was discovered in the os_str_bytes crate before 2.0.0 for Rust. It has false expectations about char::from_u32_unchecked behavior.
- Published
- 31 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-704
- Also known as
- GHSA-q948-x8rf-888mRUSTSEC-2020-0012
- Sources
- NVDJSONOSV GHSA-q948-x8rf-888mJSONOSV RUSTSEC-2020-0012JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | os_str_bytes_project | os_str_bytescpe:2.3:a:os_str_bytes_project:os_str_bytes:*:*:*:*:*:rust:*:* |
< 2.0.0 | 2.0.0 |
| OSV | crates.io | os_str_bytes | < 2.0.0 | 2.0.0 |
| OSV | crates.io | os_str_bytes | >= 0.0.0-0, < 2.0.0 | 2.0.0 |
References
- https://rustsec.org/advisories/RUSTSEC-2020-0012.html · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-35865 · ADVISORY
- https://github.com/dylni/os_str_bytes/pull/1 · WEB
- https://github.com/dylni/os_str_bytes · PACKAGE
- https://crates.io/crates/os_str_bytes · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Apr 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)