Advisory

RUSTSEC-2026-0202

Also known as: None

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.

Severity

Not rated by the source.

Dates

Published
2026-07-05 12:00 UTC
Modified
2026-07-05 08:45 UTC

Affected packages and fixes

cxx

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.0.195 (semver)

Fixed versions

1.0.195

Fix

  • Fixed version 1.0.195
    cargo update -p cxx --precise 1.0.195

Fix 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

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences