Description
The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. From 2.0.0 until 2.16.1 and 3.0.12, a request using an HTTP proxy to reach an HTTPS origin can expose preemptive origin credentials because NettyRequestFactory and NettyRequestSender.sendRequestWithNewChannel attach Authorization to the plaintext CONNECT request before the TLS tunnel exists. Basic or Digest credentials and per-connection NTLM, Kerberos, or SPNEGO tokens intended for the origin are therefore visible to the proxy and to observers on the client-to-proxy hop. The tunneled request still receives origin Authorization after the tunnel is established, while Proxy-Authorization remains on CONNECT for its intended proxy recipient. This issue is fixed in versions 2.16.1 and 3.0.12.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| AsyncHttpClient | async-http-client | >= 2.0.0, < 2.16.1, >= 3.0.0, < 3.0.12 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | async-http-client | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | async-http-client | No fix yet | — |
| Ubuntu 26.04 LTS | async-http-client | No fix yet | — |
| Ubuntu 24.04 LTS | async-http-client | No fix yet | — |
| Ubuntu 22.04 LTS | async-http-client | No fix yet | — |
| Ubuntu 18.04 LTS | async-http-client | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | async-http-client | No fix yet | — |
| Ubuntu Pro 20.04 LTS | async-http-client | No fix yet | — |
| Ubuntu Pro 14.04 LTS | async-http-client | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-pulsar-4.2 | 4.2.4-r4 | — |
| Wolfi rolling | druid | 37.0.0-r58 | — |
| Wolfi rolling | tez | 0.10.5-r31 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.asynchttpclient:async-http-client | >= 3.0.0, < 3.0.12 | 3.0.12 | GHSA-xr57-gcx8-52hf |
| Maven | org.asynchttpclient:async-http-client | >= 2.0.0, < 2.16.1 | 2.16.1 | GHSA-xr57-gcx8-52hf |
References
- https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-xr57-gcx8-52hf
- https://github.com/AsyncHttpClient/async-http-client/pull/2234
- https://github.com/AsyncHttpClient/async-http-client/commit/9dba5ac988b7e750551f59b2eab550b60ac8a0d6
- https://github.com/AsyncHttpClient/async-http-client/commit/d07dbc79f5cf378f63c246f6101d7579ace55acc