Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS03NHI1LWc3dmMtajJ2Ms4AA9of

zerovec-derive 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.3 use #[repr(C, packed)], which guarantees field order.

Permalink: https://github.com/advisories/GHSA-74r5-g7vc-j2v2
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03NHI1LWc3dmMtajJ2Ms4AA9of
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 3 months ago
Updated: 2 months 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-74r5-g7vc-j2v2
References: Repository: https://github.com/unicode-org/icu4x
Blast Radius: 16.3

Affected Packages

cargo:zerovec-derive
Dependent packages: 1
Dependent repositories: 432
Downloads: 4,146,656 total
Affected Version Ranges: >= 0.10.0, < 0.10.3, < 0.9.7
Fixed in: 0.10.3, 0.9.7
All affected versions: 0.1.1, 0.6.0, 0.8.0, 0.9.0, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.10.0, 0.10.1, 0.10.2
All unaffected versions: 0.9.7, 0.10.3