GHSA-q948-x8rf-888m

    Dashboard / Vulnerabilities / GHSA-q948-x8rf-888m

    GHSA-q948-x8rf-888m

    Published: 25 Aug 2021Last Modified: 8 Nov 2023

    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.

    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
    GHSA-q948-x8rf-888m | CVE-DB