logo

GHSA-ghc8-5cgm-5rpf inventory

Package

Manager: cargo
Name: inventory
Vulnerable Version: >=0 <0.2.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:R

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Inventory fails to prohibit standard library access prior to initialization of Rust standard library runtime Affected versions allow arbitrary caller-provided code to execute before the lifetime of `main`. If the caller-provided code accesses particular pieces of the standard library that require an initialized Rust runtime, such as `std::io` or `std::thread`, these may not behave as documented. Panics are likely; UB is possible. The flaw was corrected by enforcing that only code written within the `inventory` crate, which is guaranteed not to access runtime-dependent parts of the standard library, runs before `main`. Caller-provided code is restricted to running at compile time.

Metadata

Created: 2023-09-11T20:43:17Z
Modified: 2023-09-11T20:43:17Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-ghc8-5cgm-5rpf/GHSA-ghc8-5cgm-5rpf.json
CWE IDs: []
Alternative ID: N/A
Finding: F138
Auto approve: 1