# GHSA-wwxp-hxh6-8gf8: binary_vec_io access memory out-of-bounds in binary_read_to_ref and binary_write_from_ref

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-21T12:00:00.000Z
- Modified: 2025-10-28T06:29:26.662Z
- Also known as: RUSTSEC-2025-0109
- Weaknesses: CWE-120

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

(As written by GitHub Advisory Database.)

## Affected

- binary_vec_io (crates.io): up to 0.1.12; from 0.0.0-0

## References

- <https://github.com/RustSec/advisory-db/pull/2428> (web)
- <https://gist.github.com/lewismosciski/57ac3b8b7a861abdd0d7ae6f39de5a9d> (web)
- <https://github.com/10XGenomics/rust-toolbox> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0109.html> (advisory, web)
- <https://crates.io/crates/binary_vec_io> (package)

## Sources

- GitHub Advisory Database: [GHSA-wwxp-hxh6-8gf8](https://github.com/advisories/GHSA-wwxp-hxh6-8gf8), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0109](https://rustsec.org/advisories/RUSTSEC-2025-0109.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-wwxp-hxh6-8gf8 · Whole record: https://cve.day/GHSA-wwxp-hxh6-8gf8.json · Rebuilt by cve.day 2026-11-25T22:56:43.277Z
