Summary
CVE-2026-134341 is a denial-of-service vulnerability (CWE-409, Improper Handling of Highly Compressed Data) in the actix-http crate, which underlies the actix-web framework. An unauthenticated remote attacker can exhaust server memory with a tiny brotli-compressed request body. The CVE record rates it High, with a CVSS v4.0 score of 8.7.
Technical details
- Root cause: actix-http accepts the non-standard large-window brotli format. The decompression limit added in 3.20.1 only counts bytes the decoder has already written out. The brotli decoder allocates its internal ring buffer, up to about 1 GiB for a 2^30 window, before enough output is produced to trigger that limit.
- Trigger conditions: The server runs an affected actix-http version with the
compress-brotlifeature. The attacker sends a request withContent-Encoding: br. The advisory states that all default-configured actix-web instances are affected. - Attack vector: Network. No authentication or user interaction is needed, and the allocation occurs before authentication.
- Payload: A single request of about 850 bytes declares a 2^30 decompression window and forces roughly 1 GiB of decoder allocation.
- Impact: Memory exhaustion and out-of-memory termination of the server process. The advisory notes a pod with N GiB of memory can be OOM-killed by about N+1 concurrent requests.
Affected software
- actix-http 3.0.0 through 3.20.2 (inclusive), with the
compress-brotlifeature enabled. Applications built on actix-web that pull in these versions are exposed.
Severity
- CVSS v4.0: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
The 8.7 score cited for this CVE comes from the v4.0 vector. The v3.1 score published in the CVE record is 7.5.
Mitigation and recommended actions
- Immediate: Upgrade actix-http to 3.20.3 or later and rebuild and redeploy affected applications.
- If you cannot patch immediately:
- Reject requests with
Content-Encoding: brin middleware or at a reverse proxy before the body is extracted. - Build without the
compress-brotlifeature if brotli request bodies are not required. - Apply strict container or process memory limits to contain the damage per process.
- Reject requests with

