Vulnerability DatabaseRUSTSEC-2021-0049

RUSTSEC-2021-0049
Rust vulnerability analysis and mitigation

Overview

A memory-safety vulnerability was discovered in the through crate through version 2021-02-18 for Rust. The vulnerability (RUSTSEC-2021-0049) involves a double free condition that occurs in the through() and through_and() functions when the map function panics (GitHub Issue).

Technical details

The vulnerability stems from the public functions through::through() and through::through_and() not being panic-safe. Both functions take a user-provided closure as a parameter, and a double free of type T occurs if the user-provided closure panics. The issue was identified with a CVSS v3.1 Base Score of 9.8 (CRITICAL) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

When exploited, this vulnerability can lead to memory corruption through double free operations, potentially resulting in program crashes or undefined behavior. The issue affects applications using the through crate's through() and through_and() functions when handling panics (GitHub Issue).

Exploitability

The vulnerability can be triggered through safe APIs of the through crate. A proof-of-concept exists demonstrating the issue using a simple program that causes a panic within the closure passed to the through() function (GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version after 2021-02-18 where the vulnerability has been addressed (NVD).

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-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

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