Advisory

RUSTSEC-2021-0036

Also known as: CVE-2021-28037, GHSA-gppw-3h6h-v6q2

Summary

Intern<T>: Data race allowed on T

Details

Affected versions of this crate unconditionally implements Sync for Intern<T>.
This allows users to create data race on T: !Sync, which may lead to undefined behavior
(for example, memory corruption).

The flaw was corrected in commit 2928a87 by adding the trait bound T: Sync in the Sync impl of Intern<T>.

Severity

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

Dates

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

Affected packages and fixes

internment

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.2 (semver)

Fixed versions

0.4.2

Fix

  • Fixed version 0.4.2
    cargo update -p internment --precise 0.4.2

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