In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.http4k:http4k-core to version 6.49.0.0 or higher.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) through the Body.gunzipped() and Body.gunzippedStream() paths in core/core/src/main/kotlin/org/http4k/filter/Gzip.kt and the RequestFilters.GunZip request filter in core/core/src/main/kotlin/org/http4k/filter/RequestFilters.kt. An attacker can exhaust JVM heap and deny service to other clients by sending a small gzip-encoded request body that expands to an arbitrarily large payload.
Notes
Workarounds
GZip / GunZip filters with custom versions that wrap the decompressed InputStream in a size-limited reader, to stop gzip bombs from expanding into enough data to exhaust JVM heap.