# RUSTSEC-2026-0202: let\_cxx\_string! uses uninitialized value due to exception safety violations

- Database: RustSec
- Published: 2026-07-05
- Modified: 2026-07-05

## Affected versions

- cxx (crates.io): fixed in 1.0.195

## Description

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`.

## References

- https://crates.io/crates/cxx
- https://rustsec.org/advisories/RUSTSEC-2026-0202.html
- https://github.com/dtolnay/cxx/issues/1729

Page: https://cve.now/RUSTSEC-2026-0202

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
