RUSTSEC-2026-0295 Memory corruption bug on `ApplyResult` type
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
As a result, if an instance of ApplyResult is duplicated through Clone and both instances are dropped a use-after-free can occur.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io z3(crates.io) | >= 0.0.0-0, < 0.21.0 | 0.21.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io z3(crates.io) | >= 0.0.0-0, < 0.21.0 | 0.21.0 |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com