Advisory

RUSTSEC-2023-0058

Also known as: GHSA-36xm-35qq-795w

Summary

Exposes reference to non-Sync data to an arbitrary thread

Details

Affected versions do not enforce a Sync bound on the type of caller-provided
value held in the plugin registry. References to these values are made
accessible to arbitrary threads other than the one that constructed them.

A caller could use this flaw to submit thread-unsafe data into inventory, then
access it as a reference simultaneously from multiple threads.

The flaw was corrected by enforcing that data submitted by the caller into
inventory is Sync.

Severity

Not rated by the source.

Dates

Published
2023-09-10 12:00 UTC
Modified
2024-02-10 16:26 UTC

Affected packages and fixes

inventory

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.0 (semver)

Fixed versions

0.2.0

Fix

  • Fixed version 0.2.0
    cargo update -p inventory --precise 0.2.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