RUSTSEC-2026-0233
Crafted archives can cause a use-after-free during deserialization
- Severity
- Not rated yet
- No source has published a CVSS score yet
- Exploit chance (EPSS)
- —
- No score published
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- —
- Not classified
- Fix
0.8.17- Upgrade rkyv to this version or later
Description
Insufficient archive range validation could allow a crafted archive to reach
ArchivedString::deserialize with an invalid pointer. A reported reproducer
used rkyv::from_bytes to deserialize a struct containing strings, a vector,
a box, and an optional hash map. AddressSanitizer detected a heap use-after-free
during string deserialization.
The flaw could be triggered through the safe checked deserialization API when processing malicious archive bytes. Version 0.8.17 rejects the malformed archive during validation. Users who process untrusted archives should upgrade to 0.8.17 or later.
Affected versions
crates.io
| Package | Vulnerable | Fixed in |
|---|---|---|
| rkyv | >= 0.8.0-rc.1, < 0.8.17 |
0.8.17 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
rkyv crates.io → 0.8.17
- cargo
cargo update -p rkyv --precise 0.8.17
References
Advisories
Issue reports
Packages
Other links
Timeline
- Published
- Last updated by the source
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| RUSTSEC-2026-0235 Insufficient archive validation can cause out-of-bounds reads in archives containing Rc/Arc | Not rated yet | Also affects rkyv |
| RUSTSEC-2026-0234 Insufficient archive validation can cause out-of-bounds reads in archives containing hash tables | Not rated yet | Also affects rkyv |
| GHSA-vfvv-c25p-m7mm rkyv: Panic safety bugs in `InlineVec::clear` and `SerVec::clear` enable arbitrary code execution | Medium | Also affects rkyv |
| RUSTSEC-2026-0001 Potential Undefined Behaviors in `Arc<T>`/`Rc<T>` impls of `from_value` on OOM | Not rated yet | Also affects rkyv |
| GHSA-w5cr-frph-hw7f Use of uninitialized buffer in rkyv | High | Also affects rkyv |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor