Advisory

RUSTSEC-2020-0101

Also known as: CVE-2020-36208, GHSA-3jc5-5hc5-33gj

Summary

conquer-once's OnceCell lacks Send bound for its Sync trait.

Details

Affected versions of conquer-once implements Sync for its OnceCell type
without restricting it to Sendable types.

This allows non-Send but Sync types such as MutexGuard to be sent across
threads leading to undefined behavior and memory corruption in concurrent
programs.

The issue was fixed by adding a Send constraint to OnceCell.

Severity

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

Dates

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

Affected packages and fixes

conquer-once

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.2 (semver)

Fixed versions

0.3.2

Fix

  • Fixed version 0.3.2
    cargo update -p conquer-once --precise 0.3.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