Every CVESearch/Get API key

CVE-2021-45706

Memory flaw in zeroize_derive

9.8 CriticalFix available

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.23%Up 0.6 points since Dec 27, 2021
90%50%10%1%

What each source reports

NVD Score used9.8

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Record
CVE-2021-45706
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-459
Updated
2026-11-02
CVE ListNo score

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Record
CVE-2021-45706
Updated
2026-11-02
EUVDEUVD-2022-0554No score

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Record
EUVD-2022-0554
Updated
2026-11-03
GitHub AdvisoriesGHSA-c5hx-w945-j4pq9.8

Memory flaw in zeroize_derive

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Record
GHSA-c5hx-w945-j4pq
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-459
Updated
2026-11-02
OSVGHSA-c5hx-w945-j4pq9.8

Memory flaw in zeroize_derive

An issue was discovered in the zeroize_derive crate before 1.1.1 for Rust. Dropped memory is not zeroed out for an enum.

Record
GHSA-c5hx-w945-j4pq
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-459
Updated
2026-11-02
OSVRUSTSEC-2021-0115No score

`#[zeroize(drop)]` doesn't implement `Drop` for `enum`s

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.

Record
RUSTSEC-2021-0115
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
zeroize_derive
crates.io
before 1.1.1
1.1.1
zeroize_derive
crates.io
0.0.0-0 up to 1.1.1
1.1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-45706 is a critical vulnerability (CVSS 9.8) in Zeroize Derive Project Derive, published September 24, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.23%, the 69th percentile. Fixed in zeroize_derive 1.1.1.

References

MoveEnter Open