CVE-2020-36435
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
ruspiro-singleton (crates.io)before 0.4.1, from 0.0.0-0 before 0.4.1GitHub Advisory Database, RustSec Advisory Database
ruspiro-singleton_project ruspiro-singletonbefore 0.4.1NVD

All scores

GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2020-36435 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-fqq2-xp7m-xvm8 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0115 changed 2023-11-08CC0-1.0
NVDCVE-2020-36435 changed 2026-06-17Public domain