RUSTSEC-2026-0447: Unbounded decompression can exhaust memory and CPU resources

Published Nov 6, 2026
·
Updated

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.

Other sources

The encoding::Decoder stream can expand compressed input into a large output buffer before a caller can enforce its body size limit. An attacker who controls a compressed request or response can cause excessive memory allocation and CPU use, resulting in denial of service.

This affects applications that decode untrusted gzip, deflate, Brotli, or Zstandard bodies with the corresponding compression feature enabled.

Upgrade to actix-http 3.20.1 or later and configure Decoder::limit() when using the decoder directly. Actix Web users must also upgrade to actix-web 4.18.2 or later so that extractors pass their limits to the decoder.

— OSV

Affected Software

2 affected componentsFixes available
rust/actix-http>=0.0.0-0<3.20.1
3.20.1
rust/actix-web>=0.0.0-0<4.18.2
4.18.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/actix-http to a version that resolves this vulnerability.

    Fixed in 3.20.1
  2. Upgrade

    Upgrade rust/actix-web to a version that resolves this vulnerability.

    Fixed in 4.18.2
  3. Upgrade

    Upgrade actix-http to a version that resolves this vulnerability.

    Fixed in 3.20.1
  4. Upgrade

    Upgrade actix-web to a version that resolves this vulnerability.

    Fixed in 4.18.2
  5. Configuration

    Configure Decoder::limit() when using the decoder directly so decompressed output is bounded.

    actix-http encoding::Decoder Decoder::limit() = body size limit
  6. Compensating control

    Reject compressed request bodies at a reverse proxy or in middleware before body extraction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203