GHSA-36xm-35qq-795w
medium
Inventory exposes reference to non-Sync data to an arbitrary thread
- Severity
- medium rating by GitHub
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| inventory (crates.io) | before 0.2.0, from 0.0.0-0 before 0.2.0 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-36xm-35qq-795w changed 2024-02-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0058 changed 2024-02-10 | CC0-1.0 |