CVE-2020-35900:
use-after-free vulnerability in Rust array-queue
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.19468%
CWE
Published
8/25/2021
Updated
1/9/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
array-queue | rust | >= 0.3.0, <= 0.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from line 98 in array_queue.rs where pop_back uses raw length-based indexing instead of the crate's index() method that handles circular buffer wrapping. Multiple advisories and the PoC demonstrate this leads to accessing invalid memory locations after elements are removed from both ends, creating use-after-free conditions. The unpatched versions' lack of proper index calculation confirms this as the root cause.