{"id":"DHI-s6bj-fj5v-tzrh-gyew","aliases":["RUSTSEC-2026-0202"],"status":"published","title":"In affected versions of this crate, `let_cxx_string!` is not exception safe. After creating the `StackString`, if…","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.\n\nThe soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-07-05T12:00:00Z","modified":"2026-11-16T02:36:13Z","fixes":[{"ecosystem":"crates.io","package":"cxx","fixed_in":["1.0.195"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"rust","versions":["1.91.1-r0","1.91.1-r2","1.91.1-r3","1.91.1-r4","1.93.1-r0","1.93.1-r1","1.94.0-r0","1.94.0-r1","1.94.1-r0","1.94.1-r1","1.95.0-r0","1.96.0-r0","1.96.1-r0","1.97.0-r0","1.97.0-r1","1.98.1-r0","1.99.0-r2","1.99.1-r0"]},{"source":"osv","ecosystem":"crates.io","package":"cxx","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.0.195"}]}]}],"references":[{"url":"https://scout.docker.com/v/DHI-s6bj-fj5v-tzrh-gyew","tags":["advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0202","tags":["advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0202.html","tags":["advisory"]},{"url":"https://github.com/dtolnay/cxx/issues/1729","tags":["web","report"]},{"url":"https://crates.io/crates/cxx","tags":["package"]}],"sources":{"osv":[{"id":"DHI-s6bj-fj5v-tzrh-gyew","title":"In affected versions of this crate, `let_cxx_string!` is not exception safe. After creating the `StackString`, if…","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.\n\nThe soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.","status":"published","published":"2026-11-13T10:18:34Z","modified":"2026-11-16T02:36:13.82615099Z","updated_at":"2026-11-16T03:09:02.919716Z"},{"id":"RUSTSEC-2026-0202","title":"`let_cxx_string!` uses uninitialized value due to exception safety violations","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.\n\nThe soundness issue was fixed in version `1.0.195` by moving drop logics to separate drop guard after initializing the `StackString`.","status":"published","published":"2026-07-05T12:00:00Z","modified":"2026-07-05T08:45:04.168768726Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
