Skip to main content

CVE-2026-54786 — Wasmtime has a leak in wasmtime-wasi — CVE Details

LOW

Wasmtime has a leak in WASIp1 `fd_renumber` implementation

Published August 26, 2026Updated August 26, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.37%). Schedule for your next planned update.

Does your project use an affected wasmtime-wasi version?

Paste your Cargo.lock to check it for CVE-2026-54786 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Impact

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.

This bug only affects the native implementation of WASIp1. This means that only runtimes which load core wasm modules and expose fd_renumber are affected. Runtimes are additionally only affected if they expose the ability to acquire a file descriptor, such as opening a file. For runtimes that deny access to files they are unaffected.

Patches

Wasmtime 24.0.10, 36.0.11, 44.0.3, and 45.0.2 have been released which fix this issue.

Workarounds

There are no workarounds for this issue and hosts are recommended to update.

Advisory Timeline

  • First published August 26, 2026 (92 days ago).
  • Last revised August 26, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update wasmtime-wasi to 24.0.10 or later
cargo update -p wasmtime-wasi --precise 24.0.10
Cargo
Update wasmtime-wasi to 44.0.3 or later
cargo update -p wasmtime-wasi --precise 44.0.3
Cargo
Update wasmtime-wasi to 36.0.11 or later
cargo update -p wasmtime-wasi --precise 36.0.11
Cargo
Update wasmtime-wasi to 45.0.2 or later
cargo update -p wasmtime-wasi --precise 45.0.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
wasmtime-wasi crates.io · Affected: All versions24.0.10
wasmtime-wasi crates.io · Affected: All versions44.0.3
wasmtime-wasi crates.io · Affected: All versions36.0.11
wasmtime-wasi crates.io · Affected: All versions45.0.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2026-54786?
Wasmtime has a leak in WASIp1 `fd_renumber` implementation. This vulnerability has been assigned a severity rating of LOW (CVSS score: 5.0/10).
How do I check if my project is affected by CVE-2026-54786?
CVE-2026-54786 affects wasmtime-wasi. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54786 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.0

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.37%
EPSS percentile: 22.7

This is a below-median EPSS score — only 22.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-3p27-qvp9-27qf
RUSTSEC-2026-0182

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock