Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXE5NDgteDhyZi04ODht
os_str_bytes relies on undefined behavior of `char::from_u32_unchecked`
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.
Permalink: https://github.com/advisories/GHSA-q948-x8rf-888mJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXE5NDgteDhyZi04ODht
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 11 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-q948-x8rf-888m, CVE-2020-35865
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-35865
- https://github.com/dylni/os_str_bytes/pull/1
- https://rustsec.org/advisories/RUSTSEC-2020-0012.html
- https://github.com/advisories/GHSA-q948-x8rf-888m
Blast Radius: 32.4
Affected Packages
cargo:os_str_bytes
Dependent packages: 45Dependent repositories: 20,759
Downloads: 71,679,433 total
Affected Version Ranges: < 2.0.0
Fixed in: 2.0.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.3.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0
All unaffected versions: 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 3.0.0, 3.1.0, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 5.0.0, 6.0.0, 6.0.1, 6.1.0, 6.2.0, 6.3.0, 6.3.1, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.6.0, 6.6.1, 7.0.0