Skip to main content
← All vulnerabilities
CVE-2026-53659GHSA-G4W2-6H2R-3M3W

http4k: Unbounded gzip decompression in `ServerFilters.GZip` / `RequestFilters.GunZip` allowed memory-exhaustion DoS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.51.0.0, 5.42.0.0, 6.49.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

http4k is a functional toolkit for Kotlin HTTP applications. Prior to 4.51.0.0, 5.42.0.0, and 6.49.0.0, ServerFilters.GZip, RequestFilters.GunZip, and the underlying Gzip request-body decompression functions impose no limit on decompressed size. An unauthenticated client can send a small gzip-encoded request body that expands to gigabytes, exhausting the JVM heap and denying service to other clients. The fix uses SizeLimitedInputStream to enforce a default 10 MiB limit, causes ServerFilters.GZip and RequestFilters.GunZip to return 413 Request Entity Too Large, and causes other decompression paths to throw SizeLimitExceededException. This issue is fixed in versions 4.51.0.0, 5.42.0.0, and 6.49.0.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • http4k http4k

    fixed in 4.51.0.0; From 5.0.0.0 · fixed in 5.42.0.0; From 6.0.0.0 · fixed in 6.49.0.0

  • org.http4k:http4k-coreMaven

    From 6.0.0.0 · fixed in 6.49.0.0

  • org.http4k:http4k-coreMaven

    From 5.0.0.0 · fixed in 5.42.0.0

  • org.http4k:http4k-coreMaven

    through 4.48.2.0

References 4

GitHub · http4k/http4k