🛡️ GHSA-xrv3-jmcp-374j — zerovec
Description
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.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity high, availability none.
Weakness class
GHSA-xrv3-jmcp-374j is classified as CWE-120: Classic Buffer Overflow. Input is copied into a fixed-size buffer without a length check, overwriting memory past the end of it.
Affected software
GHSA-xrv3-jmcp-374j is recorded against 1 package.
- zerovec
Timeline and source
Published on 8 July 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| zerovec | — | — |
References
Similar Threats
- Unknown GHSA-74r5-g7vc-j2v2
- Unknown RUSTSEC-2024-0346
- Unknown RUSTSEC-2024-0347
Free Vulnerability Check
Is your site affected by GHSA-xrv3-jmcp-374j?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-xrv3-jmcp-374j and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.