RUSTSEC-2026-0397 `OutBuffer::around_pos` exposes uninitialized memory

Not scored Published
Exploited in the wild
Not known
Fix
Available

What is RUSTSEC-2026-0397?

RUSTSEC-2026-0397 is a vulnerability in zstd-safe, published on 16 Oct 2026.

Official description

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.

Which versions are affected by RUSTSEC-2026-0397?

1 open source package ship an affected version, including zstd-safe.

PackageAffectedFixed in
zstd-safe crates.ioFrom 4.0.08.2.0

How do I fix RUSTSEC-2026-0397?

Upgrade zstd-safe to 8.2.0 or later.

Is RUSTSEC-2026-0397 being exploited?

There is no known exploitation of RUSTSEC-2026-0397 in the wild and no public exploit code.

Sources

Is RUSTSEC-2026-0397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free