GHSA-3rcq-39xp-7xjp · Severity: medium · Ecosystem: rust — ic-stable-structures vulnerable to BTreeMap memory leak when deallocating nodes with overflows
When storing unbounded types in a BTreeMap, a node is represented as a linked list of "memory chunks". It was discovered recently that when we deallocate a node, in some cases only the first memory chunk is deallocated, and the rest of the memory chunks remain (incorrectly) allocated, causing a memory leak. In the worst case, depending on how a canister uses the BTreeMap, an adversary could interact with the canister through its API and trigger interactions with the map that keep consuming memory due to the memory leak. This could potentially lead to using an excessive amount of memory, or even running out of memory. This issue has been fixed in #212 https://github.com/dfinity/stable-structures/pull/212 by changing the logic for deallocating nodes to ensure that all of a node's memory chunks are deallocated and users are asked to upgrade to version 0.6.4.. Tests have been added to prevent regressions of this nature moving forward. Note: Users of stable-structure < 0.6.0 are not affected. Users who are not storing unbounded types in BTreeMap are not affected and do not need to upgrade. Otherwise, an upgrade to version 0.6.4 is necessary.
Conclusion & alert: CVE-2024-4435 is rated Low Risk (38.7/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.21%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-01-12 | 0.27% | 0.21% | -0.07% |
| 2 | 2025-12-11 | 0.38% | 0.27% | -0.11% |
| 3 | 2025-11-21 | — | 0.38% | — |
Full EPSS history (7 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.9 | 3.1 | MEDIUM |
|
2.2 | 3.6 | 6b35d637-e00f-4228-858c-b20ad6e1d07b |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-3rcq-39xp-7xjp · Severity: medium · Ecosystem: rust — ic-stable-structures vulnerable to BTreeMap memory leak when deallocating nodes with overflows
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| dfinity | stable_structures | < 0.6.0 | cpe:2.3:a:dfinity:stable_structures:*:*:*:*:*:rust:*:* |