PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseRUSTSEC-2021-0010

RUSTSEC-2021-0010: 
Rust vulnerability analysis and mitigation

Overview

The vulnerability RUSTSEC-2021-0010 (CVE-2021-25907) was discovered in the containers crate versions before 0.9.11 for Rust. The issue was identified on January 12, 2021, by the Rust group at Georgia Tech (sslab-gatech). The vulnerability involves a potential double-free memory safety issue in the util::{mutate,mutate2} functions (GitHub Issue, NVD).

Technical details

The vulnerability occurs in the containers.rs/src/util/mod.rs file where the functions mutate and mutate2 temporarily duplicate the ownership of an item. When a panic occurs during the execution of these functions, the duplicated item can be dropped twice, leading to a double-free condition. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to memory corruption through double-free conditions, which could potentially result in program crashes or security implications. When exploited, it could affect the integrity and reliability of applications using the affected versions of the containers crate (NVD).

Exploitability

A proof of concept exploit has been demonstrated using the BTree implementation in the containers crate. The exploit triggers a double free error by causing a panic during the execution of the insert_with function, which internally uses the vulnerable mutate function (GitHub Issue).

Mitigation and workarounds

Users should upgrade to containers crate version 0.9.11 or later, which contains the fix for this vulnerability (NVD).

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

GHSA-57g2-8cj3-3v8gHIGH7.5
  • Rust logoRust
  • grib
NoYesOct 22, 2026
GHSA-xw69-xv93-5fjvMEDIUM6.5
  • Rust logoRust
  • gix-fs
NoYesOct 22, 2026
GHSA-hqmx-mx83-h2xcMEDIUMN/A
  • Rust logoRust
  • kule
NoYesOct 22, 2026
GHSA-57xf-95mj-j6j6MEDIUMN/A
  • Rust logoRust
  • kule
NoYesOct 22, 2026
GHSA-4v43-5ff7-45w4MEDIUMN/A
  • Rust logoRust
  • kule
NoYesOct 22, 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