GHSA-36xm-35qq-795w Inventory exposes reference to non-Sync data to an arbitrary thread
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io inventory(crates.io) | < 0.2.0; >= 0.0.0-0, < 0.2.0 | 0.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io inventory(crates.io) | < 0.2.0 | 0.2.0 |
| crates.io inventory(crates.io) | >= 0.0.0-0, < 0.2.0 | 0.2.0 |
References
- github.com patch
- github.com patch
- rustsec.org vendor-advisory
- github.com
- github.com product
- crates.io product