GHSA-wwxp-hxh6-8gf8 binary_vec_io access memory out-of-bounds in binary_read_to_ref and binary_write_from_ref
HighCVSS 7.3
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io binary_vec_io(crates.io) | <= 0.1.12; >= 0.0.0-0 | after 0.1.12 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io binary_vec_io(crates.io) | <= 0.1.12 | No fix listed |
| crates.io binary_vec_io(crates.io) | >= 0.0.0-0 | No fix listed |
References
- github.com patch
- gist.github.com
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com