GHSA-q948-x8rf-888m
Dashboard / Vulnerabilities / GHSA-q948-x8rf-888m
GHSA-q948-x8rf-888m
Published: 25 Aug 2021Last Modified: 8 Nov 2023
Aliases:
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. The flaw was corrected in version 2.0.0.
References: https://nvd.nist.gov/vuln/detail/CVE-2020-35865, https://github.com/dylni/os_str_bytes/pull/1, https://github.com/dylni/os_str_bytes, https://rustsec.org/advisories/RUSTSEC-2020-0012.html
Affected packages
Package
Name: os_str_bytes
Purl: pkg:cargo/os_str_bytes
Affected ranges
Type: SEMVER
Events:
Introduced- 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
