—
RUSTSEC-2026-0397
`OutBuffer::around_pos` exposes uninitialized memory
Details
`OutBuffer::around_pos` accepted a position past the initialized length of a `Vec<u8>`. The next streaming call then marked everything before the position as initialized, so safe code could read stale heap memory between the vector's previous length and that position.
The flaw was corrected by zero-filling that gap.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/zstd-safe
Introduced in:
4.0.0Fixed in: 7.4.0Upgrade zstd-safe to 7.4.0 or newer (ecosystem crates.io).