high7.3No CVE yet
GHSA-wwxp-hxh6-8gf8
binary_vec_io access memory out-of-bounds in binary_read_to_ref and binary_write_from_ref
Impact
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.
An attacker can exploit this with local access to the system, without logging in, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | binary_vec_io | <= 0.1.12 | none recorded |