Advisory

RUSTSEC-2020-0028

Also known as: CVE-2020-35882, GHSA-8q2v-67v7-6vc6

Summary

LocalRequest::clone creates multiple mutable references to the same object

Details

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.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-05-27 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

rocket

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.4.5 (semver)

Fixed versions

0.4.5

Fix

  • Fixed version 0.4.5
    cargo update -p rocket --precise 0.4.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences