CVE-2026-54786: Wasmtime wasi Wasmtime Has A Leak Vulnerability

LOW
Advisory Identifier: GHSA-3p27-qvp9-27qf
CVSS 5.0
CWE-400
Published
Advisory Summary

CVE-2026-54786 is a LOW (CVSS 5.0) wasmtime has a leak vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Wasmtime wasi libraries in the crates.io ecosystem. The issue involves wasmtime has a leak in wasip1 `fd_renumber` implementation. Remediation is available by upgrading affected packages to version 24.0.10, 45.0.2, 36.0.11, 44.0.3.

CVE-2026-54786 at a Glance

CVE Identifier CVE-2026-54786
GHSA Identifier GHSA-3p27-qvp9-27qf
Severity LOW
CVSS v3.1 Base Score 5.0
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Wasmtime wasi
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-54786

To remediate this vulnerability, upgrade all affected Wasmtime wasi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wasmtime-wasi fixed: 24.0.10
Upgrade wasmtime-wasi to 24.0.10
wasmtime-wasi fixed: 45.0.2
Upgrade wasmtime-wasi to 45.0.2
wasmtime-wasi fixed: 36.0.11
Upgrade wasmtime-wasi to 36.0.11
wasmtime-wasi fixed: 44.0.3
Upgrade wasmtime-wasi to 44.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for wasmtime-wasi

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54786, inspect your project dependencies for Wasmtime wasi:

inspect dependencies for wasmtime-wasi

Analyze the terminal output to locate any version of Wasmtime wasi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 24.0.10), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Wasmtime wasi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-54786 Affected Wasmtime wasi Versions

4 component(s)
Fixed Versions:
24.0.1045.0.236.0.1144.0.3
Product / Package Ecosystem Affected Versions Fixed Version
wasmtime-wasi
crates.io
< 24.0.10
24.0.10
wasmtime-wasi
crates.io
≥ 45.0.0
< 45.0.2
45.0.2
wasmtime-wasi
crates.io
≥ 25.0.0
< 36.0.11
36.0.11
wasmtime-wasi
crates.io
≥ 37.0.0
< 44.0.3
44.0.3

References

Frequently Asked Questions

What is CVE-2026-54786?
CVE-2026-54786 is a security vulnerability in Wasmtime wasi involving Wasmtime has a leak in WASIp1 `fd_renumber` implementation under CWE-400: Uncontrolled Resource Consumption.
Which Wasmtime wasi versions are affected?
Affected versions include releases prior to 24.0.10, 45.0.2, 36.0.11, 44.0.3 across affected packages: wasmtime-wasi.
What version fixes CVE-2026-54786?
Upgrading to 24.0.10, 45.0.2, 36.0.11, 44.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wasmtime-wasi affected?
Yes, wasmtime-wasi is affected in releases prior to 24.0.10, 45.0.2, 36.0.11, 44.0.3. Upgrade your dependency to 24.0.10, 45.0.2, 36.0.11, 44.0.3 or later.
What is the CVSS score of CVE-2026-54786?
CVE-2026-54786 has a CVSS v3.1 base score of 5.0 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L.
What CWE is associated with CVE-2026-54786?
CVE-2026-54786 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for CVE-2026-54786?
Run the dependency tree command: 'inspect dependencies for wasmtime-wasi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3p27-qvp9-27qf",
  "modified" : "2026-08-26T14:31:17Z",
  "published" : "2026-08-26T14:30:10Z",
  "aliases" : [ "CVE-2026-54786" ],
  "summary" : "Wasmtime has a leak in WASIp1 `fd_renumber` implementation",
  "details" : "### Impact\n\nWasmtime'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.\n\nThis 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.\n\n### Patches\n\nWasmtime 24.0.10, 36.0.11, 44.0.3, and 45.0.2 have been released which fix this issue.\n\n### Workarounds\n\nThere are no workarounds for this issue and hosts are recommended to update.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "wasmtime-wasi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "24.0.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "wasmtime-wasi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "45.0.0"
      }, {
        "fixed" : "45.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "wasmtime-wasi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "25.0.0"
      }, {
        "fixed" : "36.0.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "wasmtime-wasi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "37.0.0"
      }, {
        "fixed" : "44.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-3p27-qvp9-27qf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54786"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/pull/13650"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/commit/100bfe27253d2ce5154ddddf66d06e30f3fa6824"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/commit/36b305d827149ac0336ddcbc0a378c303339d195"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/commit/72493b11ed5df382c92a9dfb8b6bc064e471f1cd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/commit/e9fbe974c9698edef117323d981e13caf2097c13"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/commit/f069f125cb77a4a3dced19a77d73790610678622"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bytecodealliance/wasmtime"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.2"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0182.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-26T14:30:10Z",
    "nvd_published_at" : "2026-07-01T21:17:03Z"
  }
}