RUSTSEC-2026-0399
JSON

Not scored

Use-after-free through `init_using_cdict` and `init_using_ddict`

Severity
Not scored
Published
Last changed

Description

CCtx::init_using_cdict and DCtx::init_using_ddict (experimental feature, deprecated) took the dictionary as &CDict<'b> and &DDict<'b> with only 'b: 'a, so the dictionary itself could be dropped while the context still pointed at it. The same mistake in other constructors was fixed earlier (https://github.com/gyscos/zstd-rs/issues/365).

The flaw was corrected by taking &'a CDict<'b> and &'a DDict<'b>.

Affected

Product or packageVersionsReported by
zstd-safe (crates.io)from 3.0.0 before 7.4.0, from 8.0.0-0 before 8.2.0RustSec Advisory Database

References

Sources

SourceRecordLicence
RustSec Advisory DatabaseRUSTSEC-2026-0399 changed 2026-11-02CC0-1.0