Data from an abandoned stream leaks into the next stream on a reused context
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.
Recorded fixes — zstd: 0.13.4 or 0.14.3. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 0.13.2 before 0.13.4Semantic versions | 0.13.4 |
| From 0.14.0-0 before 0.14.3Semantic versions | 0.14.3 |
Version evidence: OSV · RUSTSEC-2026-0391
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.13.2"
},
{
"fixed": "0.13.4"
},
{
"introduced": "0.14.0-0"
},
{
"fixed": "0.14.3"
}
],
"type": "SEMVER"
}
],
"versions": []
}