RUSTSEC-2026-0202

    Dashboard / Vulnerabilities / RUSTSEC-2026-0202

    RUSTSEC-2026-0202

    Published: 5 Jul 2026Last Modified: 5 Jul 2026

    Summary: `let_cxx_string!` uses uninitialized value due to exception safety violations

    Details: In affected versions of this crate, `let_cxx_string!` is not exception safe. After creating the `StackString`, if `match $value` panics, the content of `StackString` is not yet initialized, while the drop implementation of `StackString` unconditionally deinitializes the content, leading to use of uninitialized value. The soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.

    Affected packages

    Package

    Name: cxx

    Purl: pkg:cargo/cxx

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -1.0.195

    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
    RUSTSEC-2026-0202 | CVE-DB