CVE-2020-35891:
Double free in ordnung
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55713%
CWE
Published
8/25/2021
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ordnung | rust | <= 0.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies remove()
as the source of double-free issues. The GitHub issue demonstrates that passing an invalid index to remove()
triggers a panic after temporary vector allocation, leading to double-free during unwinding. The RustSec advisory specifically calls out remove()
's lack of panic safety. The code references in the issue (lines 139-152 of compact.rs
) show unsafe temporary vector handling without proper guard conditions to prevent double-free scenarios.