# GHSA-J366-H8GG-77PM: WASI preview 0 implementation of poll\_oneoff circumvents fuel consumption

- Database: GitHub
- Severity: CVSS 4.0 (Medium)
- Published: 2026-10-02
- Modified: 2026-10-23

## Tracked as

- [CVE-2026-115380](https://cve.now/CVE-2026-115380.md): Wasmtime before 36.0.17, 37.0.0 before 48.0.4, and 49.0.0 before 49.0.2 Fuel Limit Bypass DoS via WASI Preview 0 poll\_oneoff

## Affected versions

- wasmtime-wasi (crates.io): fixed in 36.0.17
- wasmtime-wasi (crates.io): from 37.0.0, fixed in 48.0.4
- wasmtime-wasi (crates.io): from 49.0.0, fixed in 49.0.2

## Description

## Impact

The WASI preview 0 implementation of `poll_oneoff` in `wasmtime-wasi` causes the host to do perform work which is `O(n)` in the number of subscriptions passed without consuming fuel or checking if fuel has run out. This exposes a DOS attack vector where a guest can perform long-running computations which ignore fuel limits. Systems using the `wasmtime` cli are affected because WASI preview 0 is enabled by default. Systems using `wasmtime` as a library are unaffected unless they explicitly enable WASI preview 0 via [`p0::add_to_linker_async`](https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/p0/fn.add_to_linker_async.html) or [`po::add_to_linker_sync`](https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/p0/fn.add_to_linker_sync.html)

The root cause is that the WASI preview 1 implementation of `poll_oneoff` does a fuel check, but the preview 0 version goes through an adapter which mutates each subscription before calling the WASIp1 version (and doesn't do its own fuel check).

WASIp1, WASIp2, and WASIp3 are all unaffected because they either properly consume fuel or don't support this API.

## Patches

The fix is present in main and patch releases are made for 36.0.17, 48.0.4 and 49.0.2.

## Workarounds

Disable WASI preview 0 support in the cli via `-Spreview0=n`.

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-j366-h8gg-77pm

Page: https://cve.now/GHSA-J366-H8GG-77PM

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
