Description
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.
Affected products and versions
traefik traefik3.1.0 – < 3.7.18Fixed in: 3.7.18
traefik traefik3.8.0-rc.1 – < 3.8.0-rc.2Fixed in: 3.8.0-rc.2
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-770 Allocation of Resources Without Limits or Throttling
References
- github.com/traefik/traefik/security/advisories/GHSA-x5pf-cqh3-2gv8 vendor advisory
- www.vulncheck.com/advisories/traefik-from-3.1.0-before-3.7.18-memory-exhaustion-dos-via-co
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.