GHSA-8xw8-mmqv-frqq fake-static allows converting any reference into a `'static` reference

Not scored Published

The fake-static crate allows unsafe lifetime coercion, potentially leading to memory corruption and code execution in Rust applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is GHSA-8xw8-mmqv-frqq?

GHSA-8xw8-mmqv-frqq is a vulnerability in fake-static, published on 24 Apr 2020.

Official description

fake-static allows converting a reference with any lifetime into a reference with 'static lifetime without the unsafe keyword.

Internally, this crate does not use unsafe code, it instead exploits a soundness bug in rustc:

https://github.com/rust-lang/rust/issues/25860

Which versions are affected by GHSA-8xw8-mmqv-frqq?

3 open source packages ship an affected version, including fake-static.

PackageAffectedFixed in
fake-static crates.ioAll versions to 0.1.0None
fake-static crates.ioAll versions to 0.1.0None
fake-static crates.ioFrom 0.0.0-0None

How do I fix GHSA-8xw8-mmqv-frqq?

No fix has been published for GHSA-8xw8-mmqv-frqq yet. Limit exposure of the affected software until one is available.

Is GHSA-8xw8-mmqv-frqq being exploited?

There is no known exploitation of GHSA-8xw8-mmqv-frqq in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2020-0013.

Is GHSA-8xw8-mmqv-frqq in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free