Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-7884

HIGH 7.5EPSS 71%

Memory leak when calling a canister method via `ic_cdk::call`

Also known as GHSA-rwq6-crjg-9cpw, RUSTSEC-2024-0372

Mitigation

  • Upgrade ic_cdk to one of 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1 (or later in the same release line).
  • Upgrade ic-cdk to one of 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package ic_cdk (>= 0.8.0, < 0.8.2)
  • Projects that depend on crates.io package ic-cdk (>= 0.8.0, < 0.8.2; >= 0.9.0-0, < 0.9.3; >= 0.10.0-0, < 0.10.1; >= 0.11.0-0, < 0.11.6; >= 0.12.0-0, < 0.12.2; >= 0.13.0-0, < 0.13.5; >= 0.14.0-0, < 0.14.1; >= 0.15.0-0, < 0.15.1; >= 0.16.0-0, < 0.16.0)
  • Anyone running Internet Computer ic-cdk >= 0.8.0, < 0.8.2; >= 0.9.0, < 0.9.3; >= 0.10.0, < 0.10.1; >= 0.11.0, < 0.11.5; >= 0.12.0, < 0.12.2; >= 0.13.0, < 0.13.4; >= 0.14.0, < 0.14.1; >= 0.15.0, < 0.15.1

Vulnerability facts

Affected
ic_cdk >= 0.8.0, < 0.8.2; ic-cdk >= 0.8.0, < 0.8.2; >= 0.9.0-0, < 0.9.3; >= 0.10.0-0, < 0.10.1; >= 0.11.0-0, < 0.11.6; >= 0.12.0-0, < 0.12.2; >= 0.13.0-0, < 0.13.5; >= 0.14.0-0, < 0.14.1; >= 0.15.0-0, < 0.15.1; >= 0.16.0-0, < 0.16.0
Fixed in
0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
1.31% chance of exploitation in 30 days (percentile 71, 2026-11-26)
CWE
CWE-401
Published
Modified

Description

When a canister method is called via ic_cdk::call* , a new Future CallFuture is created and can be awaited by the caller to get the execution result. Internally, the state of the Future is tracked and stored in a struct called CallFutureState. A bug in the polling implementation of the CallFuture allows multiple references to be held for this internal state and not all references were dropped before the Future is resolved. Since we have unaccounted references held, a copy of the internal state ended up being persisted in the canister's heap and thus causing a memory leak. Impact Canisters built in Rust with ic_cdk and ic_cdk_timers are affected. If these canisters call a canister method, use timers or heartbeat, they will likely leak a small amount of memory on every such operation. In the worst case, this could lead to heap memory exhaustion triggered by an attacker. Motoko based canisters are not affected by the bug. PatchesThe patch has been backported to all minor versions between >= 0.8.0, <= 0.15.0. The patched versions available are 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1 and their previous versions have been yanked. WorkaroundsThere are no known workarounds at the moment. Developers are recommended to upgrade their canister as soon as possible to the latest available patched version of ic_cdk to avoid running out of Wasm heap memory. Upgrading the canisters (without updating `ic_cdk`) also frees the leaked memory but it's only a temporary solution.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io ic_cdk>= 0.8.0, < 0.8.20.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1osv
crates.io ic-cdk>= 0.8.0, < 0.8.2; >= 0.9.0-0, < 0.9.3; >= 0.10.0-0, < 0.10.1; >= 0.11.0-0, < 0.11.6; >= 0.12.0-0, < 0.12.2; >= 0.13.0-0, < 0.13.5; >= 0.14.0-0, < 0.14.1; >= 0.15.0-0, < 0.15.1; >= 0.16.0-0, < 0.16.00.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0osv
Internet Computer ic-cdk>= 0.8.0, < 0.8.2; >= 0.9.0, < 0.9.3; >= 0.10.0, < 0.10.1; >= 0.11.0, < 0.11.5; >= 0.12.0, < 0.12.2; >= 0.13.0, < 0.13.4; >= 0.14.0, < 0.14.1; >= 0.15.0, < 0.15.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-7884. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-7884.md
Affected: ic_cdk >= 0.8.0, < 0.8.2; ic-cdk >= 0.8.0, < 0.8.2; >= 0.9.0-0, < 0.9.3; >= 0.10.0-0, < 0.10.1; >= 0.11.0-0, < 0.11.6; >= 0.12.0-0, < 0.12.2; >= 0.13.0-0, < 0.13.5; >= 0.14.0-0, < 0.14.1; >= 0.15.0-0, < 0.15.1; >= 0.16.0-0, < 0.16.0
Fixed in: 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0

Steps:
1. Search this machine and project for ic_cdk (crates.io), ic-cdk (crates.io), Internet Computer ic-cdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-7884 being exploited?

There is no confirmed exploitation: CVE-2024-7884 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-7884?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-7884?

ic_cdk >= 0.8.0, < 0.8.2; ic-cdk >= 0.8.0, < 0.8.2; >= 0.9.0-0, < 0.9.3; >= 0.10.0-0, < 0.10.1; >= 0.11.0-0, < 0.11.6; >= 0.12.0-0, < 0.12.2; >= 0.13.0-0, < 0.13.5; >= 0.14.0-0, < 0.14.1; >= 0.15.0-0, < 0.15.1; >= 0.16.0-0, < 0.16.0.

Is there a fix for CVE-2024-7884?

Yes. Fixed in 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0. Upgrade ic_cdk to one of 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1 (or later in the same release line). Upgrade ic-cdk to one of 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1, 0.16.0 (or later in the same release line).

How do I check if I'm affected by CVE-2024-7884?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors