Skip to content

← Actionable
Unrated

Fixed and Dynamic secret wrappers were not zeroized on drop

What to do

Vendor fix available. Upgrade each affected package to the fixed version on its release line (secure-gate 0.8.0-rc.1), redeploy, then verify what is actually installed.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • crates.io secure-gate

    Affected
    >= 0.5.0, < 0.8.0-rc.1
    Fixed in
    0.8.0-rc.1

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS
not scored
EPSS
No dated EPSS signal available.
Source description

As published by the source; long descriptions are shortened.

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…

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 1 · created ·

    Published from osv record RUSTSEC-2026-0590

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: rustsec-2026-0590

Advisory: `Fixed` and `Dynamic` secret wrappers were not zeroized on drop
IDs: rustsec-2026-0590
Record: https://patchnext.com/advisories/rustsec-2026-0590 (revision 1, source checked 23 Nov 2026, 06:00 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: Unrated
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor fix available; fixed versions by package: secure-gate 0.8.0-rc.1. A vendor fix does not mean a deployment is fixed.

## Affected components
- crates.io secure-gate: affected >= 0.5.0, < 0.8.0-rc.1; fixed in 0.8.0-rc.1

## Suggested inspection (read-only)
- crates.io secure-gate: check the installed version with your package manager.

## Supported action
Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on secure-gate.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://osv.dev/vulnerability/RUSTSEC-2026-0590 (OSV record RUSTSEC-2026-0590 lists affected ranges: crates.io secure-gate >=0.5.0 <0.8.0-rc.1 (fixed))

Commands are suggestions: review each one before running it.

Loading voting…