Rust advisories / fake-static
Vulnerability HighRUSTSEC-2020-0013 · fake-static
RUSTSEC-2020-0013: fake-static allows converting any reference into a `'static` reference
Short answerA security vulnerability in the fake-static crate: fake-static allows converting any reference into a `'static` reference. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.
| Crate | fake-static |
|---|---|
| Type | Vulnerability |
| Affected versions | Every version. |
| Fixed in | none |
| Severity | High (GitHub rating) |
| Published | 2020-04-24 |
| Last changed | 2023-11-08 |
| Also known as | GHSA-8xw8-mmqv-frqq |
What to do
- Find who pulls it in:
cargo tree -i fake-static. - Avoid the affected API, or replace the crate.
Details from the advisory
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
- Package: crates.io/crates/fake-static
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0013.html
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?