Summary
actix-http versions from 3.0.0 up to but not including 3.20.3 allow an unauthenticated remote attacker to exhaust server memory using brotli request bodies that declare a large window. The CVSS 4.0 score is 8.7 (high severity).
What happened
According to the description, actix-http contains a denial-of-service vulnerability (CWE-409). An unauthenticated remote attacker can send a request body of roughly 850 bytes with brotli content encoding that declares a 2^30 window. This forces the decoder to allocate about 1 GiB of memory per request and can cause the server to be killed for running out of memory (OOM).
Why it matters
The attack requires no authentication or user interaction and is carried out over the network. The described impact is on availability: memory exhaustion can take affected servers offline. The CVSS 4.0 score is 8.7 (vector 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), assigned by CNA:VulnCheck, and severity is high. CISA's KEV catalog does not list this vulnerability as actively exploited. The source does not indicate evidence that it was a zero-day.
Affected products and versions
actix-http (vendor: actix): versions >= 3.0.0, < 3.20.3. Version 3.20.3 is listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| actix actix-http | >= 3.0.0, < 3.20.3 | — |
| actix actix-http | 3.20.3 | 3.20.3 |
Action recommended by the source
The source lists 3.20.3 of actix-http as the fixed version. The vendor advisory is available at https://github.com/actix/actix-web/security/advisories/GHSA-7p9w-p5qm-5gc5, and a third-party advisory from VulnCheck exists. The source does not state any other mitigations.
Fixed in: 3.20.3
Sources and references
- https://github.com/actix/actix-web/security/advisories/GHSA-7p9w-p5qm-5gc5 — CVE Program
- https://www.vulncheck.com/advisories/actix-http-3.0.0-before-3.20.3-denial-of-service-via-large-window-brotli-decompression — CVE Program
Weaknesses (CWE): CWE-409
Relevant change history
Published
Advisory published.