# RUSTSEC-2020-0013: fake-static allows converting any reference into a 'static reference

- Database: RustSec
- Published: 2020-04-24
- Modified: 2023-11-08

## Also published as

- [GHSA-8XW8-MMQV-FRQQ](https://cve.now/GHSA-8XW8-MMQV-FRQQ.md) (GitHub)

## Affected versions

- fake-static (crates.io): all versions

## 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

## References

- https://crates.io/crates/fake-static
- https://rustsec.org/advisories/RUSTSEC-2020-0013.html

Page: https://cve.now/RUSTSEC-2020-0013

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
