🛡️ GHSA-r45x-ghr2-qjxc — zeroize-derive

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-226 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

Duplicate Advisory

This advisory is a duplicate of [GHSA-c5hx-w945-j4pq](https://github.com/advisories/GHSA-c5hx-w945-j4pq). This link is preserved to maintain external references.

Original Description

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

Weakness class

GHSA-r45x-ghr2-qjxc is classified as CWE-226: Sensitive Information in Resource Not Removed Before Reuse. The product releases a resource such as memory or a file so that it can be made available for reuse, but it does not clear or "zeroize" the information contained in the resource before the product performs a critical state transition or makes the…

Affected software

GHSA-r45x-ghr2-qjxc is recorded against 1 package.

  • zeroize-derive

Timeline and source

Published on 17 June 2022 and last revised on 23 June 2022. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Package)
rustsec.org (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-226
Public Exploit ✅ No
Source OSV
Published 2022-06-17
Updated 2026-08-20
Modified 2022-06-23
Fix URL N/A

Affected Packages

Software From version Fixed in
zeroize-derive

Similar Threats

Site Security Check

Is zeroize-derive part of your stack?

GHSA-r45x-ghr2-qjxc is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated