The Compress middleware creates zstd encoders using library default options that retain approximately 18 MiB of state per response until the write process is complete. Unauthenticated remote attackers can exploit this by initiating numerous concurrent requests and reading the responses slowly, leading to memory exhaustion and causing the system to crash.