CVE-2026-137479 in Traefik
Summary
by MITRE • 11/26/2026
Traefik 3.1.0 before 3.7.18 and 3.8.0-rc.1 contain a memory exhaustion vulnerability in the Compress middleware, which creates zstd encoders with library default options that retain about 18 MiB of state per response until it is fully written. Unauthenticated remote attackers can open many concurrent requests and read responses slowly to exhaust memory and crash Traefik.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in versions of the Traefik reverse proxy prior to 3.7.18 and version 3.8.0-rc.1 represents a critical resource exhaustion flaw within its Compress middleware implementation. This component is responsible for optimizing network traffic by compressing responses, typically using algorithms such as gzip or zstd to reduce bandwidth usage and improve load times for clients. The specific technical defect lies in the initialization of zstd encoders when library default options are employed without explicit configuration constraints on memory retention. Under these conditions, each active compression context retains approximately 18 megabytes of state data associated with the ongoing response stream. This design choice ensures high-performance encoding but fails to account for scenarios where clients deliberately slow down their reception of data, thereby keeping connections open and compression contexts alive far longer than intended by typical usage patterns.
From an operational perspective, this flaw enables a straightforward denial-of-service attack vector that does not require authentication or prior access privileges. An unauthenticated remote attacker can exploit this behavior by initiating numerous concurrent requests to endpoints served through the Compress middleware. By subsequently reading these responses at a significantly reduced rate, often referred to as slowloris-style attacks, the attacker forces Traefik to maintain multiple active compression contexts simultaneously. Since each context consumes roughly 18 megabytes of memory, even a moderate number of such connections can rapidly deplete the available system RAM on the host machine running the proxy service. This leads to severe performance degradation for legitimate users and ultimately results in the termination or crash of the Traefik process due to out-of-memory conditions, effectively taking down the entire reverse proxy infrastructure it supports.
This vulnerability aligns with CWE-400, which classifies issues related to Uncontrolled Resource Consumption, specifically highlighting how improper handling of resource limits can lead to system instability. In terms of offensive security frameworks, this exploit technique corresponds to ATT&CK T1498.002, known as Network Denial of Service: Reflection Amplification, although in this specific context it is more accurately described as a direct resource exhaustion attack leveraging protocol-level behaviors rather than amplification through reflection. The impact extends beyond simple service unavailability; depending on the deployment architecture, such crashes can cause cascading failures across dependent microservices or backend applications that rely on Traefik for routing and load balancing, leading to significant business disruption and potential data loss if stateful connections are abruptly terminated without proper cleanup procedures.
Mitigation strategies must prioritize immediate version upgrades as the primary defense mechanism. Administrators should upgrade their Traefik instances to version 3.7.18 or later, where this memory retention behavior has been addressed through improved encoder lifecycle management and stricter limits on concurrent compression contexts. For environments that cannot immediately patch due to compatibility constraints, temporary mitigations include configuring the Compress middleware to disable zstd encoding in favor of lighter algorithms like gzip if supported by clients, although this may reduce overall efficiency. Additionally, implementing strict rate limiting at the network perimeter or using a Web Application Firewall capable of detecting slow-read patterns can help mitigate the impact by dropping malicious connections before they consume excessive resources. Monitoring memory usage trends and setting up alerts for abnormal spikes in connection counts associated with compression endpoints will also aid in early detection and response to potential exploitation attempts.