Wasmtime: Leak in WASIp1 `fd_renumber` implementation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bytecodealliance | wasmtime | before 24.0.10; 25.0.0 to before 36.0.11; 37.0.0 to before 44.0.3; 45.0.0 to before 45.0.2 | 24.0.10, 36.0.11, 44.0.3, 45.0.2 | Patch available | CNA |
| — | wasmtime-wasi (crates.io) | before 24.0.10 | 24.0.10 | Patch available | GHSA-3p27-qvp9-27qf |
| — | wasmtime-wasi (crates.io) | 45.0.0 to before 45.0.2 | 45.0.2 | Patch available | GHSA-3p27-qvp9-27qf |
| — | wasmtime-wasi (crates.io) | 25.0.0 to before 36.0.11 | 36.0.11 | Patch available | GHSA-3p27-qvp9-27qf |
| — | wasmtime-wasi (crates.io) | 37.0.0 to before 44.0.3 | 44.0.3 | Patch available | GHSA-3p27-qvp9-27qf |
- wasmtime Vendorbytecodealliance Affected before 24.0.10; 25.0.0 to before 36.0.11; 37.0.0 to before 44.0.3; 45.0.0 to before 45.0.2 Fixed in 24.0.10, 36.0.11, 44.0.3, 45.0.2 Patch available CNA
- wasmtime-wasi (crates.io) Vendor— Affected before 24.0.10 Fixed in 24.0.10 Patch available GHSA-3p27-qvp9-27qf
- wasmtime-wasi (crates.io) Vendor— Affected 45.0.0 to before 45.0.2 Fixed in 45.0.2 Patch available GHSA-3p27-qvp9-27qf
- wasmtime-wasi (crates.io) Vendor— Affected 25.0.0 to before 36.0.11 Fixed in 36.0.11 Patch available GHSA-3p27-qvp9-27qf
- wasmtime-wasi (crates.io) Vendor— Affected 37.0.0 to before 44.0.3 Fixed in 44.0.3 Patch available GHSA-3p27-qvp9-27qf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* | before 24.0.10; 25.0.0 to before 36.0.11; 37.0.0 to before 44.0.3; 45.0.0 to before 45.0.2 | Vulnerable | bytecodealliance |
- cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* Versions before 24.0.10; 25.0.0 to before 36.0.11; 37.0.0 to before 44.0.3; 45.0.0 to before 45.0.2 Vulnerable ·bytecodealliance
Remediation
- Fix · CNA wasmtime (bytecodealliance) Fixed in 24.0.10, 36.0.11, 44.0.3, 45.0.2
- Fix · GHSA-3p27-qvp9-27qf wasmtime-wasi (crates.io) Fixed in 24.0.10 Advisory →
- Fix · GHSA-3p27-qvp9-27qf wasmtime-wasi (crates.io) Fixed in 45.0.2 Advisory →
- Fix · GHSA-3p27-qvp9-27qf wasmtime-wasi (crates.io) Fixed in 36.0.11 Advisory →
- Fix · GHSA-3p27-qvp9-27qf wasmtime-wasi (crates.io) Fixed in 44.0.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Connectivity Link 1 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54786
- 2026-10-03 Alias added: GHSA-3p27-qvp9-27qf
References
Advisory 2
Other 12
- https://github.com/bytecodealliance/wasmtime/pull/13650
- https://github.com/bytecodealliance/wasmtime/commit/100bfe27253d2ce5154ddddf66d06e30f3fa6824
- https://github.com/bytecodealliance/wasmtime/commit/36b305d827149ac0336ddcbc0a378c303339d195
- https://github.com/bytecodealliance/wasmtime/commit/72493b11ed5df382c92a9dfb8b6bc064e471f1cd
- https://github.com/bytecodealliance/wasmtime/commit/e9fbe974c9698edef117323d981e13caf2097c13
- https://github.com/bytecodealliance/wasmtime/commit/f069f125cb77a4a3dced19a77d73790610678622
- https://github.com/bytecodealliance/wasmtime
- https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.10
- https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.11
- https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.3
- https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.2
- https://rustsec.org/advisories/RUSTSEC-2026-0182.html
More bytecodealliance Wasmtime vulnerabilities
- TI-2026-21632 Wasmtime is vulnerable to panic when dropping a `[Typed]Func::call_async` future CVSS 4.0MEDIUM 6.9
- TI-2023-11636 Guest-controlled out-of-bounds read/write on x86_64 in wasmtime CVSS 3.1CRITICAL 10.0
- TI-2022-18765 Wasmtime vulnerable to data leakage between instances in the pooling allocator CVSS 3.1HIGH 8.6
- TI-2022-08604 Use after free in Wasmtime CVSS 3.1CRITICAL 9.8
- TI-2022-18766 wasmtime_trap_code C API function has out of bounds write vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-27209 Wasmtime with Winch compiler backend on aarch64 may allow a sandbox-escaping memory access CVSS 4.0CRITICAL 9.0
Sources
- CVE-2026-54786 · CVE Program
- CVE-2026-54786 · NVD
- FIRST EPSS
- GHSA-3p27-qvp9-27qf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-54786 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences