CVE-2026-142455: Io.netty/netty-codec-http: netty: httpcontentdecompressor brotli maxallocation incomplete fix permits 64 kib output buffers below cap

Published Dec 2, 2026
·
Updated

A flaw was found in netty-codec-http. A remote attacker can exploit this vulnerability by sending a Brotli-compressed HTTP request body to an application configured with a custom memory allocation limit. Due to improper buffer size enforcement during Brotli decompression, Netty allocates up to the default buffer size regardless of the configured lower limit, leading to excessive memory consumption and a potential Denial of Service (DoS) in memory-constrained environments.

Other sources

HttpContentDecompressor(int maxAllocation) is documented to limit the size of the decompression buffer. For Content-Encoding: br, it passes maxAllocation to the single-argument BrotliDecoder constructor, which treats the value as the input-buffer size, not the output cap. The decoder's output buffer therefore stays at the default of 64 KiB. This is an incomplete fix for CVE-2026-42587, which addressed maxAllocation bypasses for Brotli, Snappy and Zstd.

A remote peer that sends a Brotli-compressed HTTP body can cause Netty to allocate and forward decompressed buffers of up to 65,536 bytes even when the application configured a smaller limit, such as 1024 bytes. Other encodings such as gzip enforce the configured limit. The impact is limited resource consumption, bounded by the 64 KiB default, and it weakens decompression-bomb protection in memory-constrained deployments.

Affected are users of netty-codec-http that use HttpContentDecompressor with a nonzero maxAllocation below 65,536 and that have Brotli support available at runtime. The affected versions are 4.2.13.Final up to but not including 4.2.16.Final, and 4.1.133.Final up to but not including 4.1.137.Final. Releases 4.2.16.Final and 4.1.137.Final contain the fix.

Affected versions: >= 4.2.13.Final, < 4.2.16.Final; >= 4.1.133.Final, < 4.1.137.Final Patched versions: 4.2.16.Final; 4.1.137.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (5.3) CWE: CWE-400, CWE-770 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-j23p-mh75-24rx CVE requested by the Netty Project via PSIRTSUPT-32166.

— Red Hat

Affected Software

1 affected component
maven/io.netty/netty-codec-http>=4.2.13.Final<4.2.16.Final, >=4.1.133.Final<4.1.137.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.16.Final
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.137.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:50 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications using netty-codec-http that accept Brotli-encoded HTTP request bodies and configure HttpContentDecompressor with a custom allocation limit below 64 KiB are exposed. Memory-constrained environments are particularly affected.

2

What does an attacker need to do?

A remote peer only needs to send an HTTP request body with Content-Encoding: br. No privileges or user interaction are required.

3

Are all HTTP content encodings affected?

No. The described enforcement failure applies to Brotli decoding; gzip and the other mentioned encodings enforce the configured limit.

4

How can I determine whether my application is affected?

Check whether HttpContentDecompressor(int maxAllocation) is configured with a limit smaller than 65,536 bytes and whether the application accepts Brotli-compressed request bodies. Under those conditions, Brotli output buffers can still be allocated and forwarded at up to 65,536 bytes.

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