Intel

AIKIDO-2026-740447

wasmtime-wasi is vulnerable to Resource Leak

CVE-2026-54786Published Jun 16, 2026
June 16, 2026

23

CVE Score

Low

Resource Leak

Are you affected? Scan for Free

TL;DR

Wasmtime's native implementation of WASIp1 suffers from a leak in the fd_renumber function where the file descriptor being renumbered to is not properly closed. Wasmtime's implementation erroneously only updated the table of descriptors for WASIp1 and didn't update the underlying table of descriptors used by the host. This behavior means that while fd_renumber works correctly from a guest's perspective it ends up leaking resources in the host that aren't cleaned up until the corresponding Store is destroyed. This means that guests can, in a loop, use fd_renumber to cause hosts to exhaust resources or exhaust file descriptors.

How do I fix this?

Upgrade the wasmtime-wasi library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and if your runtime exposes the fd_renumber module with file access enabled.

Versions

0.0.0 - 24.0.9

Fixed in 24.0.10

25.0.0 - 36.0.10

Fixed in 36.0.11

37.0.0 - 44.0.2

Fixed in 44.0.3

45.0.0 - 45.0.1

Fixed in 45.0.2

Background info

wasmtime-wasi is vulnerable to Resource Leak in versions 0.0.0 - 24.0.9, 25.0.0 - 36.0.10, 37.0.0 - 44.0.2 and 45.0.0 - 45.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea