CVE-2020-36461:
Data races in noise_search
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.64009%
CWE
Published
8/25/2021
Updated
2/1/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
noise_search | rust | <= 0.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two core issues: 1) Unchecked Send/Sync implementations for MvccRwLock
enable unsafe cross-thread transfer of non-atomic types. 2) The read()
API (and similar accessors) create lifetime conflicts between shared references and mutable guards. The explicit unsafe impl blocks for Send/Sync in index.rs
directly violate Rust's safety requirements, while the safe-but-unsound read
API violates aliasing rules. The PoC demonstrates concrete memory corruption through Rc<T>
cloning across threads, confirming the impact of these implementations.