DHI-v7o7-aooy-b5ej-twdd: undici's decompress interceptor decompresses response bodies according to the untrusted Content-Encoding header. While…
undici's decompress interceptor decompresses response bodies according to the untrusted Content-Encoding header. While the number of content-encoding layers is capped, the total decompressed output size is unbounded and there is no configuration option to limit it. A malicious or faulty upstream can therefore return a small compressed payload, a compression bomb, that expands to hundreds of megabytes or more in client memory, an asymmetric resource consumption that can exhaust memory and crash the process. This affects undici versions from 7.15.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.29.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.10.2
Event History
Frequently Asked Questions
What conditions are needed for exploitation?
An attacker needs to control, or cause the client to contact, an upstream that can return a crafted compressed HTTP response. The response uses a small payload that expands to a very large size when processed according to its Content-Encoding header.
Is there a configuration setting that limits the memory impact?
No. The decompression interceptor has no configuration option to limit the total decompressed output size, although it caps the number of content-encoding layers.
How can I determine whether a deployment is affected?
Check whether the deployment uses undici's decompress interceptor and is running an undici version from 7.15.0 through 7.29.1 or from 8.0.0 through 8.10.2. The affected software list includes the specified Docker Hardened Images for Kyverno Policy Reporter UI, Qdrant, Supabase Storage, and Uptime Kuma 2.
What remediation is provided?
The provided guidance is to upgrade undici to 7.29.1 or 8.10.2. No alternative mitigation is specified for cases where upgrading cannot be performed immediately.