# GHSA-36xm-35qq-795w: Inventory exposes reference to non-Sync data to an arbitrary thread

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-09-10T12:00:00.000Z
- Modified: 2024-02-10T16:26:47.997Z
- Also known as: RUSTSEC-2023-0058

## Description

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`.

(As written by GitHub Advisory Database.)

## Affected

- inventory (crates.io): before 0.2.0; from 0.0.0-0 before 0.2.0

## References

- <https://github.com/dtolnay/inventory/pull/42> (web)
- <https://github.com/dtolnay/inventory/commit/e1e347d2725b9c9dd4a70b63eb08532ca9687652> (web)
- <https://github.com/dtolnay/inventory> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0058.html> (advisory, web)
- <https://crates.io/crates/inventory> (package)

## Sources

- GitHub Advisory Database: [GHSA-36xm-35qq-795w](https://github.com/advisories/GHSA-36xm-35qq-795w), CC-BY-4.0, modified 2024-02-10
- RustSec Advisory Database: [RUSTSEC-2023-0058](https://rustsec.org/advisories/RUSTSEC-2023-0058.html), CC0-1.0, modified 2024-02-10

---

Page: https://cve.day/GHSA-36xm-35qq-795w · Whole record: https://cve.day/GHSA-36xm-35qq-795w.json · Rebuilt by cve.day 2026-11-25T22:56:43.154Z
