GHSA-36xm-35qq-795w
MEDIUMInventory exposes reference to non-Sync data to an arbitrary thread
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.
- Published
- 10 Sep 2023
- Last modified
- 10 Feb 2024
- Also known as
- RUSTSEC-2023-0058
- Sources
- OSVJSONOSV RUSTSEC-2023-0058JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | inventory | < 0.2.0 | 0.2.0 |
| OSV | crates.io | inventory | >= 0.0.0-0, < 0.2.0 | 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 · WEB, ADVISORY
- https://crates.io/crates/inventory · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Sep 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Sep 2023)