{"id":"RUSTSEC-2026-0404","aliases":["RUSTSEC-2026-0404"],"related":[],"kind":"vulnerability","state":"published","title":"Double free in `DCtx::try_clone`","summary":"`DCtx::try_clone` (`experimental` feature, deprecated) is a plain copy of the\nC context. A context owning a dictionary (from `load_dictionary`,\n`ref_prefix` or `init_using_dict`) or a dictionary table (`ref_ddict` with\n`RefMultipleDDicts`) ended up with both copies freeing it. A context cloned\nmid-frame resumed on uninitialized stream state. The clone also silently lost\nthe `WindowLogMax` limit.\n\nThe flaw was corrected by refusing to clone such contexts, and by carrying\nover the parameters the copy leaves out.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`DCtx::try_clone` (`experimental` feature, deprecated) is a plain copy of the\nC context. A context owning a dictionary (from `load_dictionary`,\n`ref_prefix` or `init_using_dict`) or a dictionary table (`ref_ddict` with\n`RefMultipleDDicts`) ended up with both copies freeing it. A context cloned\nmid-frame resumed on uninitialized stream state. The clone also silently lost\nthe `WindowLogMax` limit.\n\nThe flaw was corrected by refusing to clone such contexts, and by carrying\nover the parameters the copy leaves out.","format":"markdown","source":"rustsec"}],"published":"2026-10-16T12:00:00.000Z","modified":"2026-11-02T09:30:04.168Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"4.1.4","status":"affected","fixed":"7.4.0"},{"type":"semver","introduced":"8.0.0-0","status":"affected","fixed":"8.2.0"}],"ecosystem":"crates.io","package":"zstd-safe","purl":"pkg:cargo/zstd-safe","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/zstd-safe","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0404.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/gyscos/zstd-rs/commit/cee6529b553ec600a8e152aaca15a91598820ecf","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/gyscos/zstd-rs/pull/384","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0404","url":"https://rustsec.org/advisories/RUSTSEC-2026-0404.html","licence":"CC0-1.0","modified":"2026-11-02T09:30:04.168Z"}],"updatedAt":"2026-11-25T22:56:43.452Z"}