Skip to main content
No exploitation reportedFix available

CVE-2026-54786

Wasmtime: Leak in WASIp1 `fd_renumber` implementation

No exploitation reported by the sources we read.

  • Published2026-07-01
  • Fixed in45.0.2 · 44.0.3 · 36.0.11 · 24.0.10
  • WeaknessCWE-400 · CWE-772

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which 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. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning 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. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.

Timeline

dates in UTC
  1. 2026-07-0121:17CVE publishedNVD

Versions per branch

NVD · OSV
Bytecodealliance wasmtime
BranchAffectedFixed in
45.0≥ 45.0.0, < 45.0.245.0.2
44.0≥ 37.0.0, < 44.0.344.0.3
36.0≥ 25.0.0, < 36.0.1136.0.11
24.0< 24.0.1024.0.10
24.0≥ 0.0.0-0, < 24.0.1024.0.10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • bytecodealliance wasmtime
    Affected
    • = < 24.0.10no fix stated
    • = >= 25.0.0, < 36.0.11no fix stated
    • = >= 37.0.0, < 44.0.3no fix stated
    • = >= 45.0.0, < 45.0.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-01

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • kubewarden-policy-serverMinimOSall versions · fixed in 1.37.0-r0and 1 other package
  • rust-wasmtimeUbuntu:26.10all versions · no fixed version listed
  • rust-wasmtimeUbuntu:26.04:LTSall versions · no fixed version listed
  • rust-wasmtimeUbuntu:25.10all versions · no fixed version listed
  • rust-wasmtimeUbuntu:24.04:LTSall versions · no fixed version listed
  • rust-wasmtimeDebian:14all versions · fixed in 36.0.11+dfsg-1
  • rust-wasmtimeDebian:13all versions · no fixed version listed
  • wasmtimeMinimOSall versions · fixed in 45.0.2-r0and 2 other packages

Vendor advisories

  • CVE-2026-54786 Red Hat Product Security2 known affected

    Wasmtime: Wasmtime: Leak in WASIp1 `fd_renumber` implementation

    rhcl-1/wasm-shim-rhel9 as a component of Red Hat Connectivity Link 1 · virt-firmware-rs.src as a component of Red Hat Enterprise Linux 10

Full record on NVD

Fix

  1. Update Bytecodealliance wasmtime to 45.0.2 · 44.0.3 · 36.0.11 · 24.0.10
  2. Workaround from the vendor Red Hat Product Security CVE-2026-54786 · 2 productsTo mitigate this issue, configure Wasmtime environments to deny guest programs the ability to acquire file descriptors, such as preventing file system access. This restriction limits the attack surface by preventing the `fd_renumber` function from leaking host resources. Consult product-specific do…
  3. No fix available, says the vendor Red Hat Product Security CVE-2026-54786 · 2 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2026-07-02
  • CNACVSS 4.02.3known since 2026-10-26
  • NVDCVSS 3.15read 2026-10-26
  • CNAweakness (CWE)CWE-400, CWE-772known since 2026-10-26
  • FIRST EPSSEPSS score0.2 %2026-12-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryLow2026-08-26

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2026-07-01
Last modified
2026-10-25
NVD status
Analyzed
GitHub advisory
GHSA-3p27-qvp9-27qf

Frequently asked questions

What is CVE-2026-54786?

Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which 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. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning 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. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.

Is CVE-2026-54786 actively exploited?

Active exploitation of CVE-2026-54786 has not been confirmed. Its EPSS score was 0.2% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-54786?

CVE-2026-54786 has a CVSS v3 base score of 5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L.

Running Wasmtime? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record