rustsec-2026-0391
debian_rustsecThe `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`.
- Published
- unknown
- Last Modified
- unknown
CVSS details not available.
No product information available.
No references available.
No linked vulnerabilities found.
{
"aliases": [],
"categories": [
"memory-exposure"
],
"crate": "zstd",
"cves": [],
"cvss": 0.0,
"database_specific": {
"severity": ""
},
"date": "2026-10-16",
"deb_packages": [
{
"crate_name": "debian-repro-status",
"deb_name": "debian-repro-status",
"version": "0.4.0-3"
},
{
"crate_name": "doxx",
"deb_name": "doxx",
"version": "0.1.4+ds-1"
},
{
"crate_name": "git-cinnabar",
"deb_name": "git-cinnabar",
"version": "0.7.3-2+b2"
},
{
"crate_name": "zstd",
"deb_name": "librust-zstd-dev",
"version": "0.13.3-1+b1"
},
{
"crate_name": "miniserve",
"deb_name": "miniserve",
"version": "0.35.0-6"
},
{
"crate_name": "protonup-rs",
"deb_name": "protonup-rs",
"version": "0.15.0-1+b2"
},
{
"crate_name": "rebuildctl",
"deb_name": "rebuildctl",
"version": "0.28.0-2"
},
{
"crate_name": "rebuilderd",
"deb_name": "rebuilderd",
"version": "0.28.0+ds-2+b2"
},
{
"crate_name": "rebuilderd-worker",
"deb_name": "rebuilderd-worker",
"version": "0.28.0-1+b2"
},
{
"crate_name": null,
"deb_name": "rustup",
"version": "1.27.1-8+b2"
},
{
"crate_name": null,
"deb_name": "ty",
"version": "0.0.85+ruff0.16.10+ds-2"
}
],
"description": "The `with_context` constructors of the stream encoders and decoders used the\nborrowed context as it was. When a stream was abandoned on a context, for\nexample an encoder dropped before `finish()` after an error, whatever it\nleft there was carried into the next stream: the input buffered by the\nprevious encoder (up to 128 KiB, or all of it with `zstdmt`) became the\nstart of the next frame, and a decoder returned undelivered output of the\nprevious stream.\n\nAn application reusing one context for data that must stay separate, such\nas different users' requests, could disclose one user's plaintext to\nanother. Whoever supplies the data can cause the abandonment with invalid\ninput.\n\nThe flaw was corrected by resetting the context's session in\n`with_context`.",
"id": "RUSTSEC-2026-0391",
"keywords": [
"information-leak",
"context-reuse"
],
"patched_versions": [
"^0.13.4",
">=0.14.3"
],
"source": "debian_rustsec",
"title": "Data from an abandoned stream leaks into the next stream on a reused context",
"url": "https://github.com/gyscos/zstd-rs/commit/74ace2dcdca62a2ce0f034895d6079458311e003"
}