Memory Leak Affecting ic-stable-structures package, versions >=0.6.0 <0.6.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-ICSTABLESTRUCTURES-6929089
  • published21 May 2024
  • disclosed21 May 2024
  • creditUnknown

Introduced: 21 May 2024

CVE-2024-4435  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade ic-stable-structures to version 0.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Memory Leak when storing unbounded types in a BTreeMap. An attacker can cause a memory leak by interacting with the canister through its API and triggering interactions with the map that keep consuming memory.

CVSS Scores

version 3.1