CVE-2026-85721
AsyncHttpClient's unbounded HTTP/1.1 response decompression enables a decompression-bomb denial of service
Description
Impact
With automatic response decompression enabled (the default), the HTTP/1.1 path decompresses response bodies with no limit on the total output size. A hostile or compromised server, or an attacker who can change a response in transit, can send a small compressed body that inflates without bound in memory, exhausting the client's heap and causing an OutOfMemoryError. gzip, deflate and snappy are always available as vectors; brotli and zstd apply only when those optional codecs are on the classpath.
Affected versions
- 3.x: up to and including 3.0.11
- 2.x: up to and including 2.16.0
The HTTP/2 path carries its own limit from 3.0.11 onward. On 3.0.8, 3.0.9 and 3.0.10 the HTTP/2 decompressor is also unbounded, so on those versions switching to HTTP/2 is not a mitigation.
Patches
Fixed in 3.0.12 on the 3.x line and in 2.16.1 on the 2.x line. The fix counts the decompressed bytes produced for each response and fails the response once the configured maximum is exceeded, so the limit applies to the whole body rather than to any single chunk.
Workarounds
On 3.x, disable automatic decompression (setEnableAutomaticDecompression(false)) and decompress manually with your own size limit. The 2.x line has no such setting; the decompressor is installed unconditionally, so the only option there is to remove the inflater handler through httpAdditionalChannelInitializer. On either line, running the client behind a proxy that caps response sizes also works.
Details
ChannelManager.newHttpContentDecompressor() created Netty's HttpContentDecompressor without any bound, and Netty's own maxAllocation parameter limits a single decode step rather than the accumulated size of a response, so it cannot bound a decompression bomb delivered as many small chunks. The fix tracks the accumulated decompressed size per response instead.
Note that 3.0.12 is itself affected by a separate issue, GHSA-rqf5-2wxv-rjf4, where a Digest challenge the client cannot read downgrades to Basic and sends the password in cleartext. Upgrade to 3.0.13 to pick up both fixes.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.asynchttpclient » async-http-client | >= 2.0.0, < 2.16.1>= 3.0.0, < 3.0.12 | 2.16.1, 3.0.12 |
Blast radius
67% of the dependent artifacts (2,338) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 23,532 |
| 2 hops | 83,539 |
| 3 hops | 44,749 |
| 4 hops | 36,293 |
| 5 hops | 24,158 |
| 6 hops | 8,361 |
Most used dependents
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.typesafe.play » play-test1,902 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- com.typesafe.play » play-ws755 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.seleniumhq.selenium » selenium-remote-driver469 usages
- org.seleniumhq.selenium » selenium-chrome-driver437 usages
- org.seleniumhq.selenium » selenium-support421 usages
- org.seleniumhq.selenium » selenium-firefox-driver372 usages
- io.appium » java-client350 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- com.atlassian.selenium » atlassian-webdriver-core292 usages
- com.vaadin » vaadin-testbench259 usages
- com.atlassian.jira » atlassian-jira-pageobjects230 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-7grg-jcf7-rpmx
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/5ee2841cbf268bba4a200578be3938ccfc6cc6d6
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/663a1a91757904b22cfe37e2e6049f1f8ea6ae59
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/e1871a19972fb496be1b8ac6be11d79e22ff2162
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/e9f2f7423e0f6503f529656f2955a1317e56ba14
- Packagehttps://github.com/AsyncHttpClient/async-http-client
