{"id":"RUSTSEC-2026-0295","revision":"9731e0475e4f4105bc8e1bc180a7566b","records":[{"revision":"9731e0475e4f4105bc8e1bc180a7566b","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0295","aliases":[],"title":"Memory corruption bug on `ApplyResult` type","description":"The `ApplyResult` type contains a raw pointer to a C++ memory object and has a derived `Clone` implementation which creates a reference to this object without incrementing the associated reference counter. \n\nAs a result, if an instance of `ApplyResult` is duplicated through `Clone` and both instances are dropped a use-after-free can occur.","state":0,"publishedAt":"2026-08-12T12:00:00+00:00","modifiedAt":"2026-09-21T10:15:04.32985+00:00","affected":[{"ecosystem":"crates.io","name":"z3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.21.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/z3","https://rustsec.org/advisories/RUSTSEC-2026-0295.html","https://github.com/prove-rs/z3.rs/pull/578"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0295","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0295","identifiers":["RUSTSEC-2026-0295"]},"retained":false,"historicalAffected":[]}],"coverage":[]}