{"id":"RUSTSEC-2026-0399","aliases":[],"title":"Use-after-free through `init_using_cdict` and `init_using_ddict`","titleSource":"OSV","descriptionSource":"OSV","description":"`CCtx::init_using_cdict` and `DCtx::init_using_ddict` (`experimental`\nfeature, deprecated) took the dictionary as `&CDict<'b>` and `&DDict<'b>`\nwith only `'b: 'a`, so the dictionary itself could be dropped while the\ncontext still pointed at it. The same mistake in other constructors was\nfixed earlier (<https://github.com/gyscos/zstd-rs/issues/365>).\n\nThe flaw was corrected by taking `&'a CDict<'b>` and `&'a DDict<'b>`.","severity":"unknown","score":null,"published":"2026-10-16T12:00:00.000Z","modified":"2026-11-02T09:30:03.328Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"zstd-safe","sources":[{"name":"OSV · RUSTSEC-2026-0399","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0399"}],"ranges":[{"events":[{"introduced":"3.0.0"},{"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-0399.html","https://github.com/gyscos/zstd-rs/commit/e00e7928e3e98953fc43418af6d73f6aae2378fb","https://github.com/gyscos/zstd-rs/pull/384"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0399","modified":"2026-11-02T09:30:03.328955732Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0399"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-02T09:40:59.463Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:15:32.077Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}