RUSTSEC-2020-0012
Dashboard / Vulnerabilities / RUSTSEC-2020-0012
RUSTSEC-2020-0012
Published: 24 Apr 2020Last Modified: 8 Nov 2023
Aliases:
Summary: 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. The flaw was corrected in version 2.0.0.
References: https://crates.io/crates/os_str_bytes, https://rustsec.org/advisories/RUSTSEC-2020-0012.html, https://github.com/dylni/os_str_bytes/pull/1
Affected packages
Package
Name: os_str_bytes
Purl: pkg:cargo/os_str_bytes
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -2.0.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
