{"id":"RUSTSEC-2026-0295","aliases":["RUSTSEC-2026-0295"],"related":[],"kind":"vulnerability","state":"published","title":"Memory corruption bug on `ApplyResult` type","summary":"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.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-08-12T12:00:00.000Z","modified":"2026-09-21T10:15:04.329Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.21.0"}],"ecosystem":"crates.io","package":"z3","purl":"pkg:cargo/z3","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/z3","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0295.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/prove-rs/z3.rs/pull/578","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0295","url":"https://rustsec.org/advisories/RUSTSEC-2026-0295.html","licence":"CC0-1.0","modified":"2026-09-21T10:15:04.329Z"}],"updatedAt":"2026-11-25T22:56:43.411Z"}