Skip to content
FlawDB
Sign in

CVE-2026-140420

MEDIUM 6.9EPSS 36%

Wasmtime before 36.0.21 Unbounded Host Memory Growth via AsyncWriteStream Empty Writes

Also known as GHSA-5m8g-xhq4-4h93, RUSTSEC-2026-0566

Mitigation

  • Upgrade wasmtime to one of 36.0.21, 48.0.9, 49.0.6, 50.0.2 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package wasmtime (>= 0.0.0-0, < 36.0.21; >= 37.0.0, < 48.0.9; >= 49.0.0, < 49.0.6; >= 50.0.0, < 50.0.2)
  • Anyone running bytecodealliance wasmtime < 36.0.21
  • Anyone running bytecodealliance wasmtime >= 37.0.0, < 48.0.9
  • Anyone running bytecodealliance wasmtime >= 49.0.0, < 49.0.6
  • Anyone running bytecodealliance wasmtime >= 50.0.0, < 50.0.2

Vulnerability facts

Affected
wasmtime >= 0.0.0-0, < 36.0.21; >= 37.0.0, < 48.0.9; >= 49.0.0, < 49.0.6; >= 50.0.0, < 50.0.2
Fixed in
36.0.21, 48.0.9, 49.0.6, 50.0.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
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:HOpen in CVSS calculator
Show all 11 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
EPSS
0.40% chance of exploitation in 30 days (percentile 36, 2026-12-03)
CWE
CWE-770
Published
Modified

Description

wasmtime-wasi in Wasmtime before 36.0.21, 37.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 allows unbounded host memory growth because AsyncWriteStream queues zero-length writes without charging them against its write budget. A malicious guest can repeatedly call wasi:io/streams output-stream.write with empty lists, exhausting host memory and causing denial of service.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io wasmtime>= 0.0.0-0, < 36.0.21; >= 37.0.0, < 48.0.9; >= 49.0.0, < 49.0.6; >= 50.0.0, < 50.0.236.0.21, 48.0.9, 49.0.6, 50.0.2osv
bytecodealliance wasmtime< 36.0.21—cvelist
bytecodealliance wasmtime>= 37.0.0, < 48.0.9—cvelist
bytecodealliance wasmtime>= 49.0.0, < 49.0.6—cvelist
bytecodealliance wasmtime>= 50.0.0, < 50.0.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2026-140420.md
Affected: wasmtime >= 0.0.0-0, < 36.0.21; >= 37.0.0, < 48.0.9; >= 49.0.0, < 49.0.6; >= 50.0.0, < 50.0.2
Fixed in: 36.0.21, 48.0.9, 49.0.6, 50.0.2

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.

Technologies

References

FAQ

Is CVE-2026-140420 being exploited?

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

How serious is CVE-2026-140420?

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-140420?

wasmtime >= 0.0.0-0, < 36.0.21; >= 37.0.0, < 48.0.9; >= 49.0.0, < 49.0.6; >= 50.0.0, < 50.0.2.

Is there a fix for CVE-2026-140420?

Yes. Fixed in 36.0.21, 48.0.9, 49.0.6, 50.0.2. Upgrade wasmtime to one of 36.0.21, 48.0.9, 49.0.6, 50.0.2 (or later in the same release line).

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

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
LOW 2.3CVE-2026-140421

Wasmtime 46.0.0 before 48.0.9 Panic via Stream/Future Cancel on Wrong End

Rust crates
EPSS 44%
MEDIUM 5.7CVE-2026-140419

Wasmtime 50.0.0 before 50.0.2 Stale GC Heap Base Pointer Denial of Service

Rust crates
EPSS 6%
LOW 2.1CVE-2026-140418

Wasmtime from 50.0.0 before 50.0.2 Process Abort via Unaligned GC Heap Reservation

Rust crates
EPSS 44%
LOW 2.1CVE-2026-140417

Wasmtime before 36.0.21 Panic in Caller::get_module_export Denial of Service

Rust crates
EPSS 33%
LOW 2.1CVE-2026-140416

Wasmtime from 50.0.0 before 50.0.2 Host Process Abort Without gc Feature

Rust crates
EPSS 44%
Sponsors