
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-ghc8-5cgm-5rpf) affects the Rust inventory crate versions prior to 0.2.0. The issue allows arbitrary caller-provided code to execute before the lifetime of main, potentially accessing parts of the standard library before proper initialization of the Rust runtime. The vulnerability was discovered and disclosed on September 11, 2023, with a moderate severity rating (GitHub Advisory).
The vulnerability stems from the inventory crate's failure to prevent access to runtime-dependent parts of the standard library (such as std::io or std::thread) before the Rust runtime is properly initialized. This could occur when caller-provided code is executed before the main function's lifetime begins. The issue was resolved in version 0.2.0 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 (RustSec Advisory).
When exploited, this vulnerability can lead to undefined behavior and likely panics when accessing certain standard library components that require an initialized runtime. The impact is particularly significant for code that attempts to use std::io or std::thread functionalities before proper initialization (GitHub PR).
The vulnerability has been patched in version 0.2.0 of the inventory crate. The fix enforces that caller-provided code is restricted to running at compile time, while only code within the inventory crate itself can run before main. Users should upgrade to version 0.2.0 or later to address this security issue (RustSec Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."