Files
advisory-db/packages/inventory.json
T
2026-08-18 06:11:25 +00:00

134 lines
4.0 KiB
JSON

[
{
"id": "RUSTSEC-2023-0058",
"modified": "2024-02-10T15:57:43Z",
"published": "2023-09-10T12:00:00Z",
"aliases": [
"GHSA-36xm-35qq-795w"
],
"related": [],
"summary": "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\nvalue held in the plugin registry. References to these values are made\naccessible 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\naccess it as a reference simultaneously from multiple threads.\n\nThe flaw was corrected by enforcing that data submitted by the caller into\ninventory is `Sync`.",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "inventory",
"purl": "pkg:cargo/inventory"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"thread-safety"
],
"cvss": null,
"informational": "unsound"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.2.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/inventory"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0058.html"
},
{
"type": "WEB",
"url": "https://github.com/dtolnay/inventory/pull/42"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2023-0057",
"modified": "2024-02-10T15:57:43Z",
"published": "2023-09-10T12:00:00Z",
"aliases": [
"GHSA-ghc8-5cgm-5rpf"
],
"related": [],
"summary": "Fails to prohibit standard library access prior to initialization of Rust standard library runtime",
"details": "Affected versions allow arbitrary caller-provided code to execute before the\nlifetime of `main`.\n\nIf the caller-provided code accesses particular pieces of the standard library\nthat require an initialized Rust runtime, such as `std::io` or `std::thread`,\nthese may not behave as documented. Panics are likely; UB is possible.\n\nThe flaw was corrected by enforcing that only code written within the\n`inventory` crate, which is guaranteed not to access runtime-dependent parts of\nthe standard library, runs before `main`. Caller-provided code is restricted to\nrunning at compile time.",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "inventory",
"purl": "pkg:cargo/inventory"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": null,
"informational": "unsound"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.2.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/inventory"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0057.html"
},
{
"type": "WEB",
"url": "https://github.com/dtolnay/inventory/pull/43"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]