os_str_bytes
Affected
- introduced
0, fixed2.0.0(semver)
Fixed versions
2.0.0
Fix
- Fixed version
2.0.0cargo update -p os_str_bytes --precise 2.0.0
Advisory
Also known as: CVE-2020-35865, RUSTSEC-2020-0012
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.
High Basis: The source's own band: HIGH
0, fixed 2.0.0 (semver)2.0.0
2.0.0cargo update -p os_str_bytes --precise 2.0.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0