Vulnerability DatabaseRUSTSEC-2021-0115

RUSTSEC-2021-0115
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2021-0115) affects the zeroize_derive crate before version 1.1.1 for Rust. The issue was discovered where dropped memory is not zeroed out for an enum when using the #[zeroize(drop)] attribute. This vulnerability was disclosed in December 2021 (CVE Database).

Technical details

The vulnerability stems from a bug where the #[zeroize(drop)] attribute fails to generate a Drop implementation when used on enums in version 1.1 of zeroize_derive. This means that sensitive data in enum variants would not be properly zeroed out when dropped, potentially leaving sensitive information in memory. The issue was later fixed in version 1.2 through PR #847 (GitHub Issue).

Impact

When exploited, this vulnerability could lead to sensitive information remaining in memory after an enum instance is dropped, potentially exposing confidential data to unauthorized access. This is particularly concerning in security-focused applications that rely on the zeroize functionality to clear sensitive data from memory.

Mitigation and workarounds

Users should upgrade to zeroize_derive version 1.1.1 or later, which contains the fix for this vulnerability. If upgrading is not immediately possible, a temporary workaround would be to implement manual memory zeroing in a custom Drop implementation for affected enums (CVE Database).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • rust-sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • wasmi
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management