RUSTSEC-2026-0202
Not scored
`let_cxx_string!` uses uninitialized value due to exception safety violations
- Severity
- Not scored
- Published
- Last changed
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cxx (crates.io) | from 0.0.0-0 before 1.0.195 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0202 changed 2026-07-05 | CC0-1.0 |