Vulnerability DatabaseRUSTSEC-2021-0053

RUSTSEC-2021-0053: 
Rust vulnerability analysis and mitigation

Overview

The RUSTSEC-2021-0053 vulnerability affects the algorithmica crate through version 2021-03-07. The issue involves a double-free vulnerability in the merge_sort::merge() function implementation. This vulnerability was discovered by the Rust group at Georgia Tech (sslab-gatech) while scanning Rust code on crates.io (GitHub Issue).

Technical details

The vulnerability stems from the implementation of merge_sort::merge() which incorrectly duplicates ownership of items from the list and invokes drop of the duplicated items via list[k] assignments. Additionally, a panic within the compare() function can trigger a double-free of items whose ownership was duplicated via .read(). The issue specifically affects types that implement the Drop trait (GitHub Issue).

Impact

When exploited, this vulnerability leads to undefined behavior in safe Rust code, specifically causing a double-free memory corruption. This can result in program crashes and potential security implications when dealing with memory management (GitHub Issue).

Exploitability

The vulnerability can be triggered simply by calling merge_sort::sort() on an array of type T where T implements the Drop trait. A proof-of-concept demonstrates this using a vector of String types, which results in a double-free detection and program termination with SIGABRT (GitHub Issue).

Additional resources


Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0363MEDIUM6.2
  • Rust logoRust
  • wasmtime
NoYesOct 14, 2026
RUSTSEC-2026-0362MEDIUM5.9
  • Rust logoRust
  • wasmtime
NoYesOct 14, 2026
RUSTSEC-2026-0361MEDIUM5.9
  • Rust logoRust
  • wasmtime
NoYesOct 14, 2026
RUSTSEC-2026-0360MEDIUM5.9
  • Rust logoRust
  • wasmtime
NoYesOct 14, 2026
RUSTSEC-2026-0364LOW2.1
  • Rust logoRust
  • wasmtime
NoYesOct 14, 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