Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS14cnYzLWptY3AtMzc0as4AA9od
zerovec incorrectly uses `#[repr(packed)]`
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS14cnYzLWptY3AtMzc0as4AA9od
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 2 months ago
Updated: about 1 month ago
CVSS Score: 6.2
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Identifiers: GHSA-xrv3-jmcp-374j
References:
- https://rustsec.org/advisories/RUSTSEC-2024-0347.html
- https://github.com/advisories/GHSA-xrv3-jmcp-374j
Affected Packages
cargo:zerovec
Dependent packages: 43Dependent repositories: 441
Downloads: 3,316,425 total
Affected Version Ranges: < 0.9.7, >= 0.10.0, < 0.10.4
Fixed in: 0.9.7, 0.10.4
All affected versions: 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.10.0, 0.10.1, 0.10.2, 0.10.3
All unaffected versions: 0.9.7, 0.10.4