AsyncHttpClient: Unbounded WebSocket permessage-deflate decompression enables a decompression-bomb denial of service when compression is enabled
AsyncHttpClient async-http-client
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.asynchttpclient:async-http-client Maven |
|
|
Original description
The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. From 2.2.0 until 3.0.14, WebSocket permessage-deflate decompression is unbounded when compression is enabled. The inbound pipeline aggregates compressed frames before WebSocketClientCompressionHandler inflates them, so webSocketMaxFrameSize and webSocketMaxBufferSize do not bound decompressed output. A malicious WebSocket peer can send a small compressed message that expands to a very large Netty buffer and exhausts JVM heap. This issue is fixed in version 3.0.14.
From the CVE record · GitHub_M
References
- github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-x8v2-478q-2hvg
- github.com/AsyncHttpClient/async-http-client/commit/b61637f30327f314b7693418f12ce141ac6b2b30
- github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.14
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107227.json
- nvd.nist.gov/vuln/detail/CVE-2026-107227
- github.com/AsyncHttpClient/async-http-client