GHSA-36xm-35qq-795w: Inventory Inventory Exposes Reference To Non-Sync Vulnerability
MODERATEGHSA-36xm-35qq-795w is a MODERATE inventory exposes reference to non-sync vulnerability (General Security Weakness) affecting Inventory libraries in the crates.io ecosystem. The issue involves inventory exposes reference to non-sync data to an arbitrary thread. Remediation is available by upgrading affected packages to version 0.2.0.
GHSA-36xm-35qq-795w at a Glance
How to Fix GHSA-36xm-35qq-795w
To remediate this vulnerability, upgrade all affected Inventory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade inventory to 0.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for inventory
How to Check if You Are Affected
To determine whether your application is affected by GHSA-36xm-35qq-795w, inspect your project dependencies for Inventory:
inspect dependencies for inventory
Analyze the terminal output to locate any version of Inventory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Inventory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-36xm-35qq-795w Affected Inventory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
inventory
|
crates.io |
< 0.2.0
|
0.2.0
|
References
Frequently Asked Questions
What is GHSA-36xm-35qq-795w?
Which Inventory versions are affected?
What version fixes GHSA-36xm-35qq-795w?
Is inventory affected?
What CWE is associated with GHSA-36xm-35qq-795w?
How can I check crates.io dependencies for GHSA-36xm-35qq-795w?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-36xm-35qq-795w",
"modified" : "2023-09-11T20:43:41Z",
"published" : "2023-09-11T20:43:41Z",
"aliases" : [ ],
"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.\n\nA caller could use this flaw to submit thread-unsafe data into inventory, then access it as a reference simultaneously from multiple threads.\n\nThe flaw was corrected by enforcing that data submitted by the caller into inventory is `Sync`.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "inventory"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dtolnay/inventory/pull/42"
}, {
"type" : "WEB",
"url" : "https://github.com/dtolnay/inventory/commit/e1e347d2725b9c9dd4a70b63eb08532ca9687652"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dtolnay/inventory"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0058.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-11T20:43:41Z",
"nvd_published_at" : null
}
}