# RUSTSEC-2026-0202: `let_cxx_string!` uses uninitialized value due to exception safety violations

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-05T12:00:00.000Z
- Modified: 2026-07-05T08:45:04.168Z

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

(As written by RustSec Advisory Database.)

## Affected

- cxx (crates.io): from 0.0.0-0 before 1.0.195

## References

- <https://crates.io/crates/cxx> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0202.html> (advisory)
- <https://github.com/dtolnay/cxx/issues/1729> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0202](https://rustsec.org/advisories/RUSTSEC-2026-0202.html), CC0-1.0, modified 2026-07-05

---

Page: https://cve.day/RUSTSEC-2026-0202 · Whole record: https://cve.day/RUSTSEC-2026-0202.json · Rebuilt by cve.day 2026-11-25T22:56:43.380Z
