CVE-2020-36448
JSON

8.1high

Data races in cache

Severity
8.1high CVSS:3.1 by NVD
Exploit likelihood
1.10% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-g78p-g85h-q6wwRUSTSEC-2020-0128

Description

An issue was discovered in the cache crate through 2020-11-24 for Rust. There are unconditional implementations of Send and Sync for Cache<K>.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
cache (crates.io)up to 0.2.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
cache_project cacheup to 2020-11-24NVD

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 cache crate through 2020-11-24 for Rust. There are unconditional implementations of Send and Sync for Cache<K>.

GitHub Advisory Database

An issue was discovered in the cache crate through 2020-11-24 for Rust. Affected versions of this crate unconditionally implement Send/Sync for Cache<K>. This allows users to insert K that is not Send or not Sync.

This allows users to create data races by using non-Send types like Arc<Cell<T>> or Rc<T> as K in Cache<K>. It is also possible to create data races by using types like Cell<T> or RefCell<T> (types that are Send but not Sync). Such data races can lead to memory corruption.

RustSec Advisory Database

Affected versions of this crate unconditionally implement Send/Sync for Cache<K>. This allows users to insert K that is not Send or not Sync.

This allows users to create data races by using non-Send types like Arc<Cell<T>> or Rc<T> as K in Cache<K>. It is also possible to create data races by using types like Cell<T> or RefCell<T> (types that are Send but not Sync). Such data races can lead to memory corruption.

NVD (es)

Se ha detectado un problema en la crate cache hasta el 24-11-2020 para Rust. Se presentan implementaciones incondicionales de Send y Sync para la función Cache(K)

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36448 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-g78p-g85h-q6ww changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0128 changed 2023-11-08CC0-1.0
NVDCVE-2020-36448 changed 2026-06-17Public domain