Advisory

RUSTSEC-2020-0091

Also known as: CVE-2020-35711, GHSA-9pqx-g3jh-qpqq

Summary

Dangling reference in access::Map with Constant

Details

Using the arc_swap::access::Map with the Constant test helper (or with
user-provided implementation of the Access trait) could sometimes lead to the
map returning dangling references.

Replaced by implementation without unsafe, at the cost of added Clone bound
on the closure and small penalty on performance.

Severity

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

Dates

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

Affected packages and fixes

arc-swap

crates.io · All systems

Affected

  • introduced 0.4.2, fixed 0.4.8, introduced 1.0.0-0, fixed 1.1.0 (semver)

Fixed versions

0.4.8, 1.1.0

Fix

  • Fixed version 0.4.8
    cargo update -p arc-swap --precise 0.4.8
  • Fixed version 1.1.0
    cargo update -p arc-swap --precise 1.1.0

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