CVE-2021-26954
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the qwutils crate before version 0.3.1 for Rust. The vulnerability, identified as CVE-2021-26954, was reported on February 3, 2021, and officially issued on February 4, 2021. The vulnerability affects the insert_slice_clone function in the qwutils crate, which is a Rust software component (RustSec Advisory).

Technical details

The vulnerability occurs when using ptr::copy for inserting elements into the middle of a Vec. During this operation, when ownership is temporarily duplicated, the clone method of a user-provided element is called. If the Clone operation panics during execution, it can result in a double-free condition, where the same memory location is freed twice. The issue has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, indicating network accessibility with low attack complexity and no required privileges or user interaction (NVD).

Impact

The vulnerability can lead to memory corruption through a double-free condition when a Clone panic occurs during the insert_slice_clone operation. This could potentially affect the availability of the system running the vulnerable code (RustSec Advisory).

Mitigation and workarounds

The issue has been fixed in qwutils version 0.3.1 and later. The fix involves adding a set_len(0) call before operating on the vector to prevent element dropping during a panic. Users should upgrade to version 0.3.1 or later to mitigate this vulnerability (RustSec Advisory).

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

RUSTSEC-2026-0236HIGH7.5
  • Rust logoRust
  • viperjs
NoYesAug 06, 2026
RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 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