# CVE-2026-54786: Wasmtime: Leak in WASIp1 \`fd\_renumber\` implementation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.3
- **CVSS:** 2.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.37% (percentile 23, 2026-11-26)
- **CWE:** CWE-772, CWE-400
- **Aliases:** GHSA-3p27-qvp9-27qf, RUSTSEC-2026-0182
- **Published:** 2026-06-15T12:00:00.000Z
- **Modified:** 2026-10-25T16:10:00.147Z

## Who should check

- Projects that depend on crates.io package wasmtime-wasi (\< 24.0.10)
- Anyone running bytecodealliance wasmtime \< 24.0.10; \>= 25.0.0, \< 36.0.11; \>= 37.0.0, \< 44.0.3; \>= 45.0.0, \< 45.0.2

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

## Affected and fixed versions

- crates.io `wasmtime-wasi`: affected \< 24.0.10; fixed 24.0.10, 45.0.2, 36.0.11, 44.0.3 (osv)
- bytecodealliance wasmtime: \< 24.0.10; \>= 25.0.0, \< 36.0.11; \>= 37.0.0, \< 44.0.3; \>= 45.0.0, \< 45.0.2 (cvelist)

## Mitigation

- Upgrade wasmtime-wasi to one of 24.0.10, 45.0.2, 36.0.11, 44.0.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54786. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54786.md
Affected: wasmtime-wasi < 24.0.10
Fixed in: 24.0.10, 45.0.2, 36.0.11, 44.0.3

Steps:
1. Search this machine and project for wasmtime-wasi (crates.io), bytecodealliance wasmtime: 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.
```

## FAQ

### Is CVE-2026-54786 being exploited?

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

### How serious is CVE-2026-54786?

Low: CVSS 2.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-54786?

wasmtime-wasi \< 24.0.10.

### Is there a fix for CVE-2026-54786?

Yes. Fixed in 24.0.10, 45.0.2, 36.0.11, 44.0.3. Upgrade wasmtime-wasi to one of 24.0.10, 45.0.2, 36.0.11, 44.0.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-54786?

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.

## References

- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-3p27-qvp9-27qf>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-54786>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0182.html>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/13650>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/100bfe27253d2ce5154ddddf66d06e30f3fa6824>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/36b305d827149ac0336ddcbc0a378c303339d195>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/72493b11ed5df382c92a9dfb8b6bc064e471f1cd>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/e9fbe974c9698edef117323d981e13caf2097c13>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/f069f125cb77a4a3dced19a77d73790610678622>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.10>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.11>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.3>
- other: <https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.2>
- other: <https://crates.io/crates/wasmtime-wasi>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54786>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3p27-qvp9-27qf> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0182> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54786> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54786>
