Skip to content

GHSA-8hxh-r6f7-jf45 Memory exhaustion in http4s-async-http-client with large or malicious compressed responses

Unknown
Published
Updated
Exploit status
No public exploit known

Description

Impact

A server we connect to with http4s-async-http-client could theoretically respond with a large or malicious compressed stream and exhaust memory in the client JVM. It does not affect http4s servers, other client backends, or clients that speak only to trusted servers. This is related to a transitive dependency on netty-codec-4.1.45.Final, which is affected by CVE-2020-11612.

Patches

Upgrade to http4s-async-http-client >= 0.21.8. All 1.0 milestones are also safe.

Workarounds

Add an explicit runtime dependency on async-http-client's netty dependencies that evicts them to an unaffected version:

libraryDependencies ++= Seq(
  "io.netty" %  "netty-codec"         % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-codec-socks"   % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-handler-proxy" % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-common"        % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-transport"     % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-handler"       % "4.1.53.Final" % Runtime,
  "io.netty" %  "netty-resolver-dns"  % "4.1.53.Final" % Runtime
)

References

For more information

If you have any questions or comments about this advisory:

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
org.http4s/http4s-async-http-client_2.12(Maven) < 0.21.8; <= 0.21.7; = 0.10.0-M10; = 0.15.0 +163 more 0.21.8 Fixed
org.http4s/http4s-async-http-client_2.13(Maven) < 0.21.8; <= 0.21.7; = 0.10.0-M10; = 0.21.0 +18 more 0.21.8 Fixed

Affected products

ProductAffected versionsFixed in
org.http4s/http4s-async-http-client_2.13(Maven) <= 0.21.7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) <= 0.21.7 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) < 0.21.8 0.21.8
org.http4s/http4s-async-http-client_2.13(Maven) = 0.10.0-M10 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M4 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M5 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-M6 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-RC1 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-RC2 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-RC3 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-RC4 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.0-RC5 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.1 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.2 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.3 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.4 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.5 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.6 No fix listed
org.http4s/http4s-async-http-client_2.13(Maven) = 0.21.7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) < 0.21.8 0.21.8
org.http4s/http4s-async-http-client_2.12(Maven) = 0.10.0-M10 No fix listed
Show 164 more
ProductAffected versionsFixed in
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.0a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.10 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.10a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.11 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.11a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.12 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.12a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.13 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.13a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.14 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.14a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.15 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.15a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.16 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.16a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.1a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.2a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.3a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.4a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.5a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.6a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.7a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.8 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.8a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.9 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.15.9a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-RC1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-RC2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0-RC3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-RC1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-RC2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.0a-RC3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.1a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.2a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.3a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.4a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.5a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.16.6a No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0-RC1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0-RC2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.0-RC3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.17.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M8 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.0-M9 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.10 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.11 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.12 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.13 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.14 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.15 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.16 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.17 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.18 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.19 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.20 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.21 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.22 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.23 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.24 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.25 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.26 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.8 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.18.9 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.19.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.19.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.19.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.19.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.19.0-M4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-M7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.0-RC1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.10 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.11 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.12 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.13 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.14 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.15 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.16 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.17 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.18 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.19 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.20 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.21 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.22 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.23 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.7 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.8 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.20.9 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-M6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-RC1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-RC2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-RC3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-RC4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.0-RC5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.1 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.2 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.3 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.4 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.5 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.6 No fix listed
org.http4s/http4s-async-http-client_2.12(Maven) = 0.21.7 No fix listed

References