Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. cache
  4. ›
  5. CVE-2020-36448

CVE-2020-36448: Data races in cache

August 25, 2021

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.

References

  • github.com/advisories/GHSA-g78p-g85h-q6ww
  • github.com/krl/cache
  • github.com/krl/cache/issues/1
  • nvd.nist.gov/vuln/detail/CVE-2020-36448
  • rustsec.org/advisories/RUSTSEC-2020-0128.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36448 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.2.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

cargo/cache/CVE-2020-36448.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.