Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc3OHAtZzg1aC1xNnd3
Data races in cache
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc3OHAtZzg1aC1xNnd3
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: about 1 year ago
CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-g78p-g85h-q6ww, CVE-2020-36448
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-36448
- https://github.com/krl/cache/issues/1
- https://rustsec.org/advisories/RUSTSEC-2020-0128.html
- https://github.com/advisories/GHSA-g78p-g85h-q6ww
Blast Radius: 0.0
Affected Packages
cargo:cache
Dependent packages: 1Dependent repositories: 1
Downloads: 5,351 total
Affected Version Ranges: <= 0.2.0
No known fixed version
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0