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

CVE-2020-35882: Data races in rocket

August 25, 2021 (updated June 13, 2023)

The affected version of rocket contains a Clone trait implementation of LocalRequest that reuses the pointer to inner Request object. This causes data race in rare combinations of APIs if the original and the cloned objects are modified at the same time.

References

  • github.com/SergioBenitez/Rocket
  • github.com/SergioBenitez/Rocket/issues/1312
  • github.com/advisories/GHSA-8q2v-67v7-6vc6
  • nvd.nist.gov/vuln/detail/CVE-2020-35882
  • rustsec.org/advisories/RUSTSEC-2020-0028.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35882 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 starting from 0.4.0 before 0.4.5

Fixed versions

  • 0.4.5

Solution

Upgrade to version 0.4.5 or above.

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')

Source file

cargo/rocket/CVE-2020-35882.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:45 +0000.