Skip to content

← Public intelligence

crates.io package

secure-gate

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Unratedcrates.ioPublished

    Fixed and Dynamic secret wrappers were not zeroized on drop

    Affected
    • crates.io secure-gate >= 0.5.0, < 0.8.0-rc.1
    Fixed in
    0.8.0-rc.1· Vendor fix available
    Issue
    In affected versions, the `Fixed ` and `Dynamic ` wrappers (and the `FixedNoClone` / `DynamicNoClone` variants in 0.6.x) did not wipe their contents when dropped. The types implemented the `zeroize::ZeroizeOnDrop` marker trait, which has no methods and does nothing by itself, but had no `Drop` implementation. The documentation stated that secrets were zeroized on drop. A secret held in one of these wrappers stayed in the freed stack or heap memory after the wrapper went out of scope, where it could be read by anything able to observe that memory later, such as a core dump, swap, or a separate memory disclosure bug. Versions before 0.5.0 are not affected: with the default `zeroize` feature they stored the secret in `secrecy::SecretBox` or `zeroize::Zeroizing`, both of which wipe on drop. The flaw was fixed by making `zeroize` a required dependency, bounding the wrappers on `T: Zeroize`, and adding `Drop` implementations that call `zeroize()`. The first published release with the fix…

    Recommended action: Upgrade to 0.8.0-rc.1 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →