{"id":"RUSTSEC-2026-0202","aliases":["RUSTSEC-2026-0202"],"related":[],"kind":"vulnerability","state":"published","title":"`let_cxx_string!` uses uninitialized value due to exception safety violations","summary":"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.\n\nThe soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.\n\nThe soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.","format":"markdown","source":"rustsec"}],"published":"2026-07-05T12:00:00.000Z","modified":"2026-07-05T08:45:04.168Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.0.195"}],"ecosystem":"crates.io","package":"cxx","purl":"pkg:cargo/cxx","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/cxx","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0202.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/dtolnay/cxx/issues/1729","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0202","url":"https://rustsec.org/advisories/RUSTSEC-2026-0202.html","licence":"CC0-1.0","modified":"2026-07-05T08:45:04.168Z"}],"updatedAt":"2026-11-25T22:56:43.380Z"}