# GHSA-8XW8-MMQV-FRQQ: fake-static allows converting any reference into a 'static reference

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2021-08-25
- Modified: 2023-11-08

## Also published as

- [RUSTSEC-2020-0013](https://cve.now/RUSTSEC-2020-0013.md) (RustSec)

## Affected versions

- fake-static (crates.io): through 0.1.0

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

## References

- https://github.com/rust-lang/rust/issues/25860
- https://github.com/NieDzejkob/fake-static
- https://rustsec.org/advisories/RUSTSEC-2020-0013.html

Page: https://cve.now/GHSA-8XW8-MMQV-FRQQ

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