GHSA-jf5h-cf95-w759

    Dashboard / Vulnerabilities / GHSA-jf5h-cf95-w759

    GHSA-jf5h-cf95-w759

    Published: 17 Jun 2022Last Modified: 8 Nov 2023

    Summary: Optional `Deserialize` implementations lacking validation

    Details: When activating the non-default feature `serialize`, most structs implement `serde::Deserialize` without sufficient validation. This allows breaking invariants in safe code, leading to: * Undefined behavior in `as_string()` methods (which use `std::str::from_utf8_unchecked()` internally). * Panics due to failed assertions. See https://github.com/gz/rust-cpuid/issues/43.

    Affected packages

    Package

    Name: raw-cpuid

    Purl: pkg:cargo/raw-cpuid

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 3.1.0
    Fixed -9.1.1

    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-jf5h-cf95-w759 | CVE-DB