RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0447

Compressed request bodies can exhaust memory before extractor limits apply

Reported
Issued
Package
actix-web (crates.io)
Type
Vulnerability
Categories
Aliases
References
Patched
  • >=4.18.2

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.

Advisory available under CC0-1.0 license.