
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."