Advisory

RUSTSEC-2020-0046

Also known as: CVE-2020-35899, GHSA-whc7-5p35-4ww2

Summary

bespoke Cell implementation allows obtaining several mutable references to the same data

Details

The custom implementation of a Cell primitive in the affected versions of this crate
does not keep track of mutable references to the underlying data.

This allows obtaining several mutable references to the same object
which may result in arbitrary memory corruption, most likely use-after-free.

The flaw was corrected by switching from a bespoke Cell<T> implementation to Rc<RefCell<T>>.

Severity

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

Dates

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

Affected packages and fixes

actix-service

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.0.6 (semver)

Fixed versions

1.0.6

Fix

  • Fixed version 1.0.6
    cargo update -p actix-service --precise 1.0.6

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