CVE-2020-35892: Out of bounds read in simple-slab
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61972%
CWE
Published
8/25/2021
Updated
1/27/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
simple-slab | rust | < 0.3.3 | 0.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability reports explicitly show:
- index() uses unsafe pointer arithmetic without bounds checks (CWE-125)
- remove() accesses mem.offset(self.len) which is an off-by-one error
- The GitHub issue demonstrates crash scenarios from both functions
- The RustSec advisory confirms both issues were fixed in 0.3.3 Code examples from the project's lib.rs directly show the vulnerable pointer operations without proper validation.