Advisory

RUSTSEC-2021-0115

Also known as: CVE-2021-45706, GHSA-c5hx-w945-j4pq

Summary

#[zeroize(drop)] doesn't implement Drop for enums

Details

Affected versions of this crate did not implement Drop when #[zeroize(drop)] was used on an enum.

This can result in memory not being zeroed out after dropping it, which is exactly what is intended when adding this attribute.

The flaw was corrected in version 1.2 and #[zeroize(drop)] on enums now properly implements Drop.

Severity

Not rated by the source.

Dates

Published
2021-09-24 12:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

zeroize_derive

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.1.1 (semver)

Fixed versions

1.1.1

Fix

  • Fixed version 1.1.1
    cargo update -p zeroize_derive --precise 1.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences