# RUSTSEC-2026-0295: Memory corruption bug on `ApplyResult` type

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-12T12:00:00.000Z
- Modified: 2026-09-21T10:15:04.329Z

## 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.

(As written by RustSec Advisory Database.)

## Affected

- z3 (crates.io): from 0.0.0-0 before 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)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0295](https://rustsec.org/advisories/RUSTSEC-2026-0295.html), CC0-1.0, modified 2026-09-21

---

Page: https://cve.day/RUSTSEC-2026-0295 · Whole record: https://cve.day/RUSTSEC-2026-0295.json · Rebuilt by cve.day 2026-11-25T22:56:43.411Z
