logo

GHSA-r45x-ghr2-qjxc zeroize_derive

Package

Manager: cargo
Name: zeroize_derive
Vulnerable Version: <0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v4.0: N/A

EPSS: N/A pctlN/A

Details

Duplicate Advisory: `#[zeroize(drop)]` doesn't implement `Drop` for `enum`s ## 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 `enum`s now properly implements `Drop`.

Metadata

Created: 2022-06-17T00:30:52Z
Modified: 2022-06-23T17:29:03Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-r45x-ghr2-qjxc/GHSA-r45x-ghr2-qjxc.json
CWE IDs: ["CWE-226"]
Alternative ID: N/A
Finding: N/A
Auto approve: 0