zerovec incorrectly uses `#[repr(packed)]`
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
The affected versions make unsafe memory accesses under the assumption that `#[repr(packed)]` has a guaranteed field order. The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts reordering fields of `#[repr(packed)]` structs, leading to illegal memory accesses. The patched versions `0.9.7` and `0.10.4` use `#[repr(C, packed)]`, which guarantees field order.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | zerovec (crates.io) | 0.10.0 to before 0.10.4 | 0.10.4 | Patch available | GHSA-xrv3-jmcp-374j |
| — | zerovec (crates.io) | before 0.9.7 | 0.9.7 | Patch available | GHSA-xrv3-jmcp-374j |
- zerovec (crates.io) Vendor— Affected 0.10.0 to before 0.10.4 Fixed in 0.10.4 Patch available GHSA-xrv3-jmcp-374j
- zerovec (crates.io) Vendor— Affected before 0.9.7 Fixed in 0.9.7 Patch available GHSA-xrv3-jmcp-374j
Remediation
- Fix · GHSA-xrv3-jmcp-374j zerovec (crates.io) Fixed in 0.10.4 Advisory →
- Fix · GHSA-xrv3-jmcp-374j zerovec (crates.io) Fixed in 0.9.7 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-xrv3-jmcp-374j
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences