# CVE-2026-27204: Wasmtime WASI implementations are vulnerable to guest-controlled resource exhaustion

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

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Passive; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-26)
- **CWE:** CWE-400, CWE-770, CWE-774, CWE-789
- **Aliases:** GHSA-852m-cvvp-9p4w, RUSTSEC-2026-0020
- **Published:** 2026-02-24T12:00:00.000Z
- **Modified:** 2026-10-12T18:00:08.826Z

## Who should check

- Projects that depend on crates.io package wasmtime (\< 24.0.6)
- Anyone running bytecodealliance wasmtime \< 24.0.6; \>= 25.0.0, \< 36.0.6; \>= 37.0.0, \< 40.0.4; \>= 41.0.0, \< 41.0.4

## Description

Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of WASI host interfaces are susceptible to guest-controlled resource exhaustion on the host. Wasmtime did not appropriately place limits on resource allocations requested by the guests. This serves as a Denial of Service vector. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 have all been released with the fix for this issue. These versions do not prevent this issue in their default configuration to avoid breaking preexisting behaviors. All versions of Wasmtime have appropriate knobs to prevent this behavior, and Wasmtime 42.0.0-and-later will have these knobs tuned by default to prevent this issue from happening. There are no known workarounds for this issue without upgrading. Embedders are recommended to upgrade and configure their embeddings as necessary to prevent possibly-malicious guests from triggering this issue.

## Affected and fixed versions

- crates.io `wasmtime`: affected \< 24.0.6; fixed 24.0.6, 36.0.6, 40.0.4, 41.0.4 (osv)
- bytecodealliance wasmtime: \< 24.0.6; \>= 25.0.0, \< 36.0.6; \>= 37.0.0, \< 40.0.4; \>= 41.0.0, \< 41.0.4 (cvelist)

## Mitigation

- Upgrade wasmtime to one of 24.0.6, 36.0.6, 40.0.4, 41.0.4 (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-27204. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27204.md
Affected: wasmtime < 24.0.6
Fixed in: 24.0.6, 36.0.6, 40.0.4, 41.0.4

Steps:
1. Search this machine and project for wasmtime (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-27204 being exploited?

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

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

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

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

wasmtime \< 24.0.6.

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

Yes. Fixed in 24.0.6, 36.0.6, 40.0.4, 41.0.4. Upgrade wasmtime to one of 24.0.6, 36.0.6, 40.0.4, 41.0.4 (or later in the same release line).

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

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-852m-cvvp-9p4w>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27204>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0020.html>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/12599>
- other: <https://github.com/bytecodealliance/wasmtime/issues/11552>
- other: <https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/struct.WasiCtxBuilder.html#method.max_random_size>
- other: <https://docs.rs/wasmtime/latest/wasmtime/component/struct.ResourceTable.html#method.set_max_capacity>
- other: <https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.set_hostcall_fuel>
- other: <https://docs.wasmtime.dev/security-what-is-considered-a-security-vulnerability.html>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://crates.io/crates/wasmtime>

## 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-27204>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-852m-cvvp-9p4w> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0020> (license: <https://creativecommons.org/licenses/by/4.0/>)

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