# CVE-2026-35186: Wasmtime has an improperly masked return value from \`table.grow\` with Winch compiler backend

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-09 · Modified: 2026-04-13
- Aliases: UBUNTU-CVE-2026-35186, DEBIAN-CVE-2026-35186, CGA-2pc3-5w4w-qcv4, CGA-2vh2-rq4r-cpmx, CGA-4938-f7q5-6pjw, CGA-f93w-8v9w-5v9h, CGA-j5q3-4vm3-m2xv, CGA-jq33-xjqf-9wfw, CGA-pp53-w52v-3xpg, CGA-v6m5-pg68-77cq, CGA-v6rx-hvmm-8c6m, CGA-w3w7-3hfm-c8f7, GHSA-f984-pcp8-v2p7, RUSTSEC-2026-0094
- Record: https://cvemate.com/vulnerability/CVE-2026-35186 · JSON: https://cvemate.com/vulnerability/CVE-2026-35186/json

## Description

```text
Wasmtime is a runtime for WebAssembly. From 25.0.0 to before 36.0.7, 42.0.2, and 43.0.1, Wasmtime's Winch compiler backend contains a bug where translating the table.grow operator causes the result to be incorrectly typed. For 32-bit tables this means that the result of the operator, internally in Winch, is tagged as a 64-bit value instead of a 32-bit value. This invalid internal representation of Winch's compiler state compounds into further issues depending on how the value is consumed. The primary consequence of this bug is that bytes in the host's address space can be stored/read from. This is only applicable to the 16 bytes before linear memory, however, as the only significant return value of table.grow that can be misinterpreted is -1. The bytes before linear memory are, by default, unmapped memory. Wasmtime will detect this fault and abort the process, however, because wasm should not be able to access these bytes. Overall this this bug in Winch represents a DoS vector by crashing the host process, a correctness issue within Winch, and a possible leak of up to 16-bytes before linear memory. Wasmtime's default compiler is Cranelift, not Winch, and Wasmtime's default settings are to place guard pages before linear memory. This means that Wasmtime's default configuration is not affected by this issue, and when explicitly choosing Winch Wasmtime's otherwise default configuration leads to a DoS. Disabling guard pages before linear memory is required to possibly leak up to 16-bytes of host data. This vulnerability is fixed in 36.0.7, 42.0.2, and 43.0.1.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.227%, percentile 14.269%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard wash (Chainguard): All versions (No fix recorded)
- chainguard wasmcloud (Chainguard): \< 2.0.4-r0
- chainguard wizer (Chainguard): \< 11.0.3-r10
- chainguard yara-x (Chainguard): \< 1.15.0-r2
- chainguard zed (Chainguard): \< 0.228.0-r3
- wolfi wash (Wolfi): All versions (No fix recorded)
- wolfi wasmcloud (Wolfi): \< 2.0.4-r0
- wolfi wizer (Wolfi): \< 11.0.3-r10
- wolfi yara-x (Wolfi): \< 1.15.0-r2
- wolfi zed (Wolfi): \< 0.228.0-r3
- bytecodealliance wasmtime: ≥ 43.0.0, \< 44.0.1 \| ≥ 25.0.0, \< 36.0.7 \| ≥ 37.0.0, \< 42.0.2 \| 43.0.0
- Crates.Io wasmtime (Crates.Io): ≥ 25.0.0, \< 36.0.7 \| ≥ 37.0.0, \< 42.0.2 \| ≥ 43.0.0, \< 43.0.1
- debian rust-wasmtime (Debian): All versions (No fix recorded) \| \< 36.0.7+dfsg-1
- ubuntu rust-wasmtime (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-f984-pcp8-v2p7>
- <https://ubuntu.com/security/CVE-2026-35186>
- <https://www.cve.org/CVERecord?id=CVE-2026-35186>
- <https://security-tracker.debian.org/tracker/CVE-2026-35186>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35186.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35186>
- <https://github.com/bytecodealliance/wasmtime>
- <https://rustsec.org/advisories/RUSTSEC-2026-0094.html>
- <https://crates.io/crates/wasmtime>
- <https://github.com/bytecodealliance/wasmtime/pull/13014>

---

Data as of 2026-12-05T10:24:44.902Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
