Advisory

GHSA-36xm-35qq-795w

Also known as: RUSTSEC-2023-0058

Summary

Inventory 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-09-11 20:43 UTC
Modified
2024-02-10 16:26 UTC

Affected packages and fixes

inventory

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences