
Cloud Vulnerability DB
A community-led vulnerabilities database
An issue was discovered in the arenavec crate through 2021-01-12 for Rust. A double drop can sometimes occur upon a panic in T::drop(). The vulnerability is tracked as RUSTSEC-2021-0040 and CVE-2021-29931 (NVD, RUSTSEC).
The vulnerability is classified as a double free issue (CWE-415) that can occur in three different functions within the arenavec crate: common::Slice::new, common::SliceVec::resize_with, and common::SliceVec::resize. The issue manifests when a panic occurs within T::drop(), potentially leading to memory corruption. The vulnerability has received a CVSS v3.1 Base Score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability can lead to memory corruption through double free operations, which could potentially result in program crashes or undefined behavior. The CVSS scoring indicates that while there is no impact on confidentiality or integrity, there is a high impact on availability (NVD).
The vulnerability requires no privileges or user interaction to exploit, and can be triggered through network access. This is reflected in the CVSS metrics showing Network attack vector, Low attack complexity, and No privileges required (NVD).
The suggested fixes include moving the res.len = len assignment to after all writes are completed in common::Slice::new, and moving self.slice.len = len to before drop_in_place() in both common::SliceVec::resize_with and common::SliceVec::resize functions (GitHub Issue).
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."