RUSTSEC-2026-0234
Insufficient archive validation can cause out-of-bounds reads in archives containing hash tables
- 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
The archive validator could accept certain malformed relative pointers and
invalid ArchivedHashTable states. In particular, the hash table verifier did
not ensure that the number of occupied buckets matched the table's declared
length.
A crafted archive could pass the checks performed by the safe rkyv::access
and rkyv::from_bytes APIs and then cause an out-of-bounds read in later
validation, lookup, or deserialization. Depending on the input, this could
perform scalar or SIMD reads outside the archive buffer or crash the process.
Version 0.8.17 strengthens archive range validation and rejects hash tables whose number of occupied buckets does not match their declared length. 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-0233 Crafted archives can cause a use-after-free during deserialization | 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