{"id":"RUSTSEC-2026-0202","revision":"aedbfe3a2c7544159b4c8a96502371d8","records":[{"revision":"aedbfe3a2c7544159b4c8a96502371d8","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0202","aliases":[],"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`.","state":0,"publishedAt":"2026-07-05T12:00:00+00:00","modifiedAt":"2026-07-05T08:45:04.1687687+00:00","affected":[{"ecosystem":"crates.io","name":"cxx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"1.0.195"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/cxx","https://rustsec.org/advisories/RUSTSEC-2026-0202.html","https://github.com/dtolnay/cxx/issues/1729"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0202","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0202","identifiers":["RUSTSEC-2026-0202"]},"retained":false,"historicalAffected":[]}],"coverage":[]}