Advisory

RUSTSEC-2020-0107

Also known as: CVE-2020-36215, GHSA-rw2c-c256-3r53

Summary

hashconsing's HConsed lacks Send/Sync bound for its Send/Sync trait.

Details

Affected versions of hashconsing implements Send/Sync for its HConsed type without restricting it to Sendable types and Syncable types.

This allows non-Sync types such as Cell to be shared across threads leading to undefined behavior and memory corruption in concurrent programs.

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-11-10 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

hashconsing

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

  • Fixed version 1.1.0
    cargo update -p hashconsing --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