wasmtime-wasi-http is vulnerable to Denial of Service (DoS)
59
CVE Score
Medium
Denial of Service (DoS)
Wasmtime's wasi:http implementation forwards the guest supplied between-bytes-timeout duration directly to a Tokio timer API without validating it first. Tokio panics when given a zero length duration, so a guest that requests a 0 timeout on an outgoing request triggers a host panic. The flaw reaches any embedder using the wasmtime-wasi-http crate's default-send-request Cargo feature, which ships enabled by default. The fix clamps the forwarded timeout to a minimum of one nanosecond before it reaches Tokio.
Upgrade the wasmtime-wasi-http library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use Wasmtime's wasi:http implementation with the default default-send-request feature enabled.
46.0.0 - 48.0.3
Fixed in 48.0.449.0.0 - 49.0.1
Fixed in 49.0.2wasmtime-wasi-http is vulnerable to Denial of Service (DoS) in versions 46.0.0 - 48.0.3 and 49.0.0 - 49.0.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.