GHSA-xrrq-rrgq-h89w: Static alloc Static-alloc Vulnerability Leads To Uninitialized Vulnerability
LOWGHSA-xrrq-rrgq-h89w is a LOW static-alloc vulnerability leads to uninitialized vulnerability (CWE-908: Use of Uninitialized Resource) affecting Static alloc libraries in the crates.io ecosystem. The issue involves static-alloc vulnerability leads to uninitialized read after allocating membump. Remediation is available by upgrading affected packages to version 0.2.6.
GHSA-xrrq-rrgq-h89w at a Glance
How to Fix GHSA-xrrq-rrgq-h89w
To remediate this vulnerability, upgrade all affected Static alloc 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 static-alloc to 0.2.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for static-alloc
How to Check if You Are Affected
To determine whether your application is affected by GHSA-xrrq-rrgq-h89w, inspect your project dependencies for Static alloc:
inspect dependencies for static-alloc
Analyze the terminal output to locate any version of Static alloc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.6), 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-908: Use of Uninitialized Resource, where the product uses or accesses a resource that has not been initialized. In Static alloc, 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-xrrq-rrgq-h89w Affected Static alloc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
static-alloc
|
crates.io |
≥ 0.2.2
< 0.2.6
|
0.2.6
|
References
Frequently Asked Questions
What is GHSA-xrrq-rrgq-h89w?
Which Static alloc versions are affected?
What version fixes GHSA-xrrq-rrgq-h89w?
Is static-alloc affected?
What CWE is associated with GHSA-xrrq-rrgq-h89w?
How can I check crates.io dependencies for GHSA-xrrq-rrgq-h89w?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrrq-rrgq-h89w",
"modified" : "2025-07-11T19:57:06Z",
"published" : "2025-07-11T19:57:06Z",
"aliases" : [ ],
"summary" : "static-alloc vulnerability leads to uninitialized read after allocating MemBump",
"details" : "The affected function, `MemBump::new()`, would allocate memory without initializing it. Subsequently calling the created value's various `alloc`methods would then read and write the start of that memory as a `Cell` which isundefined behavior. Instead, it should zero initialize the start of the allocated memory.\n\nFor instance, some values could violate the internal invariants of the type and cause an assertion failure. Nevertheless, no deterministic read is known tocause further uninitialized memory to be exposed.\n\nAffected downstream users that can not upgrade are advised to call `MemBump::reset` immediately after allocation to manually perform the missing write of the counter best-as-possible.\n\nThe flaw was corrected in commit d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967 by zeroing the Cell at the start of the allocated memory.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "static-alloc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.2.2"
}, {
"fixed" : "0.2.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/197g/static-alloc/issues/81"
}, {
"type" : "WEB",
"url" : "https://github.com/197g/static-alloc/pull/82/commits/d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967"
}, {
"type" : "WEB",
"url" : "https://github.com/197g/static-alloc"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0042.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-908" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-11T19:57:06Z",
"nvd_published_at" : null
}
}