Advisory record · GHSA-3rcq-39xp-7xjp

ic-stable-structures vulnerable to BTreeMap memory leak when deallocating nodes with overflows

CVSS 5.9 MediumEPSS 0.0052 · 44th percentile

Published by the GitHub Advisory Database at 21 May 2024, 14:49 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
ic-stable-structurescrates.io>=0.6.0, <0.6.40.6.4
Identifiers
GHSA-3rcq-39xp-7xjp · CVE-2024-4435 · RUSTSEC-2024-0406
Weakness (CWE)
CWE-401
Published
21 May 2024
Updated
10 Dec 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

ic-stable-structures versions 0.6.0 up to but not including 0.6.4 leak memory in BTreeMap when it deallocates nodes that store unbounded types, because some memory chunks are left allocated. An adversary who can call the canister's API may be able to trigger repeated map operations that keep consuming memory, potentially exhausting it. Upgrade to version 0.6.4, which fixes the issue.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.9 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (Dfinity)
  • CISA KEV Not listed.
  • EPSS 0.0052, the 44th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:19 UTC First seen by agentprime
  2. 31 Oct 2026, 15:19 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.