8.1high
Data race in ruspiro-singleton
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-fqq2-xp7m-xvm8RUSTSEC-2020-0115
Description
An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ruspiro-singleton (crates.io) | before 0.4.1, from 0.0.0-0 before 0.4.1 | GitHub Advisory Database, RustSec Advisory Database |
| ruspiro-singleton_project ruspiro-singleton | before 0.4.1 | NVD |
All scores
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.
GitHub Advisory Database
Singleton<T> is meant to be a static object that can be initialized lazily. In
order to satisfy the requirement that static items must implement Sync,
Singleton implemented both Sync and Send unconditionally.
This allows for a bug where non-Sync types such as Cell can be used in
singletons and cause data races in concurrent programs.
The flaw was corrected in commit b0d2bd20e by adding trait bounds, requiring
the contaiend type to implement Sync.
NVD (es)
Se ha detectado un problema en la crate ruspiro-singleton versiones anteriores a 0.4.1 para Rust. En Singleton, Send y Sync no presenten comprobaciones de límites
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36435 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fqq2-xp7m-xvm8 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0115 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36435 changed 2026-06-17 | Public domain |