CVE-2021-28028
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the toodee crate before version 0.3.0 for Rust, affecting the row insertion functionality. The vulnerability was identified and disclosed on March 1, 2021, impacting the toodee::TooDee::insert_row function. This security flaw affects memory safety in the Rust implementation (RustSec Advisory).

Technical details

The vulnerability occurs when inserting rows from an iterator at a particular index. The toodee implementation would shift items over, duplicating their ownership. The space reservation for new elements was based on the len() returned by the ExactSizeIterator, which could lead to memory corruption issues. The vulnerability has been assigned 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

The vulnerability could result in elements in the array being freed twice if the iterator panics. Additionally, uninitialized or previously freed elements could be exposed if the len() didn't match the number of elements. This could lead to memory corruption and potential security implications (RustSec Advisory).

Exploitability

The vulnerability is classified as CWE-415 (Double Free) and requires an attacker to trigger specific conditions during row insertion operations. The critical CVSS score of 9.8 indicates that the vulnerability is highly exploitable with network access, requiring no privileges or user interaction (NVD).

Mitigation and workarounds

The issues were fixed in toodee version 0.3.0 through commit ced70c17, which implemented two key changes: temporarily setting the length of the array smaller while processing it, and adding assertions on the number of elements returned by the iterator. Users are advised to upgrade to version 0.3.0 or later (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

GHSA-5x78-73v4-xg6wHIGH8.7
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
GHSA-fx4f-mhw4-qm7jMEDIUM6.9
  • Rust logoRust
  • vibeio-http
NoYesAug 24, 2026
GHSA-3gjw-f78c-vvpwMEDIUM6.9
  • Rust logoRust
  • tokio-postgres
NoYesAug 24, 2026
GHSA-rgqc-3x5p-6gwgMEDIUM6.9
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
RUSTSEC-2026-0267NONEN/A
  • Rust logoRust
  • stable-vec
NoYesAug 24, 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