Advisory

RUSTSEC-2026-0295

Also known as: None

Summary

Memory corruption bug on ApplyResult type

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-08-12 12:00 UTC
Modified
2026-09-21 10:15 UTC

Affected packages and fixes

z3

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.21.0 (semver)

Fixed versions

0.21.0

Fix

  • Fixed version 0.21.0
    cargo update -p z3 --precise 0.21.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences