
Cloud Vulnerability DB
A community-led vulnerabilities database
The fake-static vulnerability (GHSA-8xw8-mmqv-frqq) is a high-severity issue discovered in the Rust programming language's fake-static crate, affecting versions <= 0.1.0. The vulnerability was reported on April 24, 2020, and published to the GitHub Advisory Database on August 25, 2021. The issue allows converting any reference with any lifetime into a reference with 'static lifetime without using the unsafe keyword, which poses significant security risks (GitHub Advisory, RustSec Advisory).
The vulnerability exploits a soundness bug in the Rust compiler (rustc) related to the combination of variance and implied bounds for nested references. The issue doesn't use unsafe code directly but instead leverages a type system weakness that allows for unauthorized lifetime conversions. This is tracked in the Rust compiler as issue #25860, which demonstrates how the type system can be manipulated to create invalid reference lifetimes (Rust Issue).
The vulnerability allows for the creation of invalid reference lifetimes, which can lead to memory safety violations in Rust programs. By converting references to 'static lifetime without proper validation, the vulnerability bypasses Rust's memory safety guarantees, potentially leading to undefined behavior and security issues (GitHub Advisory).
Currently, there are no patched versions available for the fake-static crate. The recommended mitigation is to avoid using the fake-static crate entirely and to ensure proper lifetime management in Rust code (GitHub 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."