RUSTSEC-2026-0202 `let_cxx_string!` uses uninitialized value due to exception safety violations
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io cxx(crates.io) | >= 0.0.0-0, < 1.0.195 | 1.0.195 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io cxx(crates.io) | >= 0.0.0-0, < 1.0.195 | 1.0.195 |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com issue-tracking