RUSTSEC-2026-0295
not scored yetMemory corruption bug on `ApplyResult` type
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.
As a result, if an instance of ApplyResult is duplicated through Clone and both instances are dropped a use-after-free can occur.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | z3 | >= 0.0.0-0, < 0.21.0 | 0.21.0 |
References
- https://crates.io/crates/z3 · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0295.html · ADVISORY
- https://github.com/prove-rs/z3.rs/pull/578 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Aug 2026)