# RUSTSEC-2026-0233: Crafted archives can cause a use-after-free during deserialization

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-11T12:00:00.000Z
- Modified: 2026-08-04T09:30:04.420Z

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

(As written by RustSec Advisory Database.)

## Affected

- rkyv (crates.io): from 0.8.0-rc.1 before 0.8.17

## References

- <https://crates.io/crates/rkyv> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0233.html> (advisory)
- <https://github.com/rkyv/rkyv/issues/666> (report)
- <https://github.com/rkyv/rkyv/commit/3c9d07fbff5949261bef38d00ab160b129bd9d3a> (web)
- <https://github.com/rkyv/rkyv/commit/107772907c4e839fa67900385f0d4814e7d15e42> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0233](https://rustsec.org/advisories/RUSTSEC-2026-0233.html), CC0-1.0, modified 2026-08-04

---

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