GHSA-8xw8-mmqv-frqq: Fake static Fake-static Allows Converting Any Reference Vulnerability
HIGHGHSA-8xw8-mmqv-frqq is a HIGH fake-static allows converting any reference vulnerability (CWE-657: Violation of Secure Design Principles) affecting Fake static libraries in the crates.io ecosystem. The issue involves fake-static allows converting any reference into a `'static` reference. Remediation is available in the latest vendor maintenance releases.
GHSA-8xw8-mmqv-frqq at a Glance
How to Fix GHSA-8xw8-mmqv-frqq
To remediate this vulnerability, upgrade all affected Fake static dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade fake-static to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for fake-static
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8xw8-mmqv-frqq, inspect your project dependencies for Fake static:
inspect dependencies for fake-static
Analyze the terminal output to locate any version of Fake static in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-657: Violation of Secure Design Principles, where the product violates well-established principles for secure design. In Fake static, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8xw8-mmqv-frqq Affected Fake static Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fake-static
|
crates.io |
≤ 0.1.0
|
|
References
Frequently Asked Questions
What is GHSA-8xw8-mmqv-frqq?
Which Fake static versions are affected?
What version fixes GHSA-8xw8-mmqv-frqq?
Is fake-static affected?
What CWE is associated with GHSA-8xw8-mmqv-frqq?
How can I check crates.io dependencies for GHSA-8xw8-mmqv-frqq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xw8-mmqv-frqq",
"modified" : "2021-08-18T21:41:18Z",
"published" : "2021-08-25T20:55:33Z",
"aliases" : [ ],
"summary" : "fake-static allows converting any reference into a `'static` reference",
"details" : "fake-static allows converting a reference with any lifetime into\na reference with `'static` lifetime without the `unsafe` keyword.\n\nInternally, this crate does not use unsafe code, it instead\nexploits a soundness bug in rustc\n\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "fake-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rust-lang/rust/issues/25860"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/NieDzejkob/fake-static"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2020-0013.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-657" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-18T21:41:18Z",
"nvd_published_at" : null
}
}