Update rkyv to 0.8.13 (Security Fix) #767
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the
rkyvdependency from0.7.42to0.8.13to address a security vulnerability.Security Advisory
RUSTSEC-2026-0001: Potential Undefined Behavior in
Arc<T>/Rc<T>impls offrom_valueon OOMThe vulnerability involves improper null pointer handling in allocation routines for shared pointer types. When memory allocation fails (OOM), the implementation fails to validate whether the allocator returned a null pointer, which then gets passed to
Box::from_raw(), triggering undefined behavior. This can be exploited through safe deserialization APIs likerkyv::from_bytes.Affected versions: < 0.8.13
Patched versions: >= 0.8.13
Changes
rkyvversion from0.7.42to0.8.13size_32→pointer_width_32rkyv/validation→rkyv/bytecheckarchive(...)→rkyv(...)archive_attr(derive(...))→rkyv(derive(...))archive(check_bytes)→rkyv(bytecheck())Breaking Changes
None for consumers of this crate. The rkyv integration API remains the same.