Vulnerability RUSTSEC-2026-0391

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
17 days ago
October 16, 2026 at 12:00 PM UTC
Data from an abandoned stream leaks into the next stream on a reused context
0.13.2 - 0.13.3 and 0.14.0 - 0.14.2
0.13.2 - 0.13.3 and 0.14.0 - 0.14.2

Summary

Data from an abandoned stream leaks into the next stream on a reused context

Details

The with_context constructors of the stream encoders and decoders used the borrowed context as it was. When a stream was abandoned on a context, for example an encoder dropped before finish() after an error, whatever it left there was carried into the next stream: the input buffered by the previous encoder (up to 128 KiB, or all of it with zstdmt) became the start of the next frame, and a decoder returned undelivered output of the previous stream.

An application reusing one context for data that must stay separate, such as different users' requests, could disclose one user's plaintext to another. Whoever supplies the data can cause the abandonment with invalid input.

The flaw was corrected by resetting the context's session in with_context.

Impacted packages

Timeline

Published
17 days ago
October 16, 2026 at 12:00 PM UTC
Fixed (0.14.3)
16 days ago
October 16, 2026 at 04:59 PM UTC
Fixed (0.13.4)
1 day ago
November 01, 2026 at 02:12 PM UTC
Last Modified
4 hours ago
November 02, 2026 at 09:30 AM UTC