CVE-2020-36435: Data race in ruspiro-singleton
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55836%
CWE
Published
8/25/2021
Updated
1/27/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 |
---|---|---|---|
ruspiro-singleton | rust | < 0.4.1 | 0.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper trait implementations for Sync and Send in the Singleton struct. The original code implemented these traits unconditionally (without T: Sync
/Send
bounds), violating Rust's thread safety requirements. This allowed interior mutable types like Cell
to be stored in singletons, enabling data races in concurrent access scenarios. The commit diff clearly shows these were the only modified trait implementations, and the CVE description explicitly identifies them as the flawed components.