{"id":"RUSTSEC-2026-0404","aliases":[],"title":"Double free in `DCtx::try_clone`","titleSource":"OSV","descriptionSource":"OSV","description":"`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.","severity":"unknown","score":null,"published":"2026-10-16T12:00:00.000Z","modified":"2026-11-02T09:30:04.168Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"zstd-safe","sources":[{"name":"OSV · RUSTSEC-2026-0404","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0404"}],"ranges":[{"events":[{"introduced":"4.1.4"},{"fixed":"7.4.0"},{"introduced":"8.0.0-0"},{"fixed":"8.2.0"}],"type":"SEMVER"}],"versions":[],"fixed":["7.4.0","8.2.0"]}],"sourceAffected":[],"references":["https://crates.io/crates/zstd-safe","https://rustsec.org/advisories/RUSTSEC-2026-0404.html","https://github.com/gyscos/zstd-rs/commit/cee6529b553ec600a8e152aaca15a91598820ecf","https://github.com/gyscos/zstd-rs/pull/384"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0404","modified":"2026-11-02T09:30:04.168804805Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0404"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-02T09:40:41.026Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:30:31.296Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}