Affected versions
Rust / Cargoactix-http
- Affected versions
- >=0.0.0-0 <3.20.1
- Fixed version
- 3.20.1
Rust / Cargoactix-web
- Affected versions
- >=0.0.0-0 <4.18.2
- Fixed version
- 4.18.2
Exploitation
Description
Body extractors do not pass their size limits to the decompression layer. A small compressed request can therefore cause a large allocation before the extractor rejects the decoded body. A remote attacker can use this to exhaust memory or CPU resources and cause denial of service.
This affects applications that read compressed request bodies with the corresponding compression feature enabled.
Upgrade to actix-web 4.18.2 or later with actix-http 3.20.1 or later. As a workaround, reject compressed request bodies at a reverse proxy or in middleware before body extraction.
Links
- https://crates.io/crates/actix-http
- https://crates.io/crates/actix-web
- https://github.com/actix/actix-web/commit/0d0be61bd757027bfcecbc53df1b7a600f21ecd0
- https://github.com/actix/actix-web/commit/41b54d23ea04f66758c15de7e4ab18325cd25280
- https://rustsec.org/advisories/RUSTSEC-2026-0447.html
- https://rustsec.org/advisories/RUSTSEC-2026-0448.html

