# RUSTSEC-2025-0109: Out-of-bounds memory access in binary\_read\_to\_ref and binary\_write\_from\_ref

- Database: RustSec
- Published: 2025-10-21
- Modified: 2025-10-28

## Also published as

- [GHSA-WWXP-HXH6-8GF8](https://cve.now/GHSA-WWXP-HXH6-8GF8.md) (GitHub)

## Affected versions

- binary\_vec\_io (crates.io): all versions

## Description

Safe functions accept a single `&T` or `&mut T` but multiply by `n` to create slices extending beyond allocated memory when `n > 1`.

These functions use `from_raw_parts` to create slices larger than the underlying allocation, violating memory safety.

The binary_vec_io repository is archived and unmaintained.

## References

- https://crates.io/crates/binary_vec_io
- https://rustsec.org/advisories/RUSTSEC-2025-0109.html
- https://github.com/RustSec/advisory-db/pull/2428

Page: https://cve.now/RUSTSEC-2025-0109

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
