GHSA-xcpm-76hf-c9cc

    Dashboard / Vulnerabilities / GHSA-xcpm-76hf-c9cc

    GHSA-xcpm-76hf-c9cc

    Published: 22 Oct 2025Last Modified: 28 Oct 2025

    Summary: Borrowck Scarifices exposes uninitialized memory in any_as_u8_slice

    Details: The safe function `any_as_u8_slice` can create byte slices that reference uninitialized memory when used with types containing padding bytes. The function uses `slice::from_raw_parts` to create a `&[u8]` covering the entire size of a type, including padding bytes. According to Rust's documentation, `from_raw_parts` requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. This violates the safety contract and causes undefined behavior.

    Affected packages

    Package

    Name: borrowck_sacrifices

    Purl: pkg:cargo/borrowck_sacrifices

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.2.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-xcpm-76hf-c9cc | CVE-DB