{"id":"GHSA-x5pf-cqh3-2gv8","aliases":[],"summary":"Unauthenticated memory-exhaustion DoS: the Compress middleware pins ~18 MiB of zstd encoder state per in-flight response","published_at":"2026-11-12T10:01:26Z","modified_at":"2026-11-12T10:01:26Z","products":[{"slug":"traefik","name":"Traefik","category":"proxy"}],"rating":{"severity":"high","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":10.7,"record_count":1,"vendors":["GitHub"],"details":"## Summary\n\nThere is a potential vulnerability in Traefik's Compress middleware. When `zstd` is one of the enabled encodings (the default), the middleware creates its zstd encoder with the library default options, which hold about 18 MiB of memory for each response until the response is fully written. An unauthenticated client that opens many concurrent requests and reads the responses slowly can make Traefik hold an unbounded amount of memory and crash. The patched versions bound the encoder memory to less than 1 MiB per response, with no change to the compressed output.\n\nTraefik v2 is not affected: zstd support in the Compress middleware was introduced in v3.1.0. The end-of-life v3 lines from v3.1 to v3.6 are affected and will not receive a patch. Upgrade to a patched version.\n\n## Patches\n\n- https://github.com/traefik/traefik/releases/tag/v3.7.18\n- https://github.com/traefik/traefik/releases/tag/v3.8.0-rc.2\n\n## For more information\n\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).","affected_stack":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.1.0"},{"fixed":"v3.7.18"}]}],"fixed":["v3.7.18"],"provider":"github-repo-advisories","source":"GHSA-x5pf-cqh3-2gv8","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.8.0-rc.1"},{"fixed":"v3.8.0-rc.2"}]}],"fixed":["v3.8.0-rc.2"],"provider":"github-repo-advisories","source":"GHSA-x5pf-cqh3-2gv8","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-x5pf-cqh3-2gv8","relation":"self","url":"https://github.com/traefik/traefik/security/advisories/GHSA-x5pf-cqh3-2gv8","license":"GitHub Terms of Service","published_at":"2026-11-12T10:01:26Z","modified_at":"2026-11-12T10:01:26Z","summary":"Unauthenticated memory-exhaustion DoS: the Compress middleware pins ~18 MiB of zstd encoder state per in-flight response","details":"## Summary\n\nThere is a potential vulnerability in Traefik's Compress middleware. When `zstd` is one of the enabled encodings (the default), the middleware creates its zstd encoder with the library default options, which hold about 18 MiB of memory for each response until the response is fully written. An unauthenticated client that opens many concurrent requests and reads the responses slowly can make Traefik hold an unbounded amount of memory and crash. The patched versions bound the encoder memory to less than 1 MiB per response, with no change to the compressed output.\n\nTraefik v2 is not affected: zstd support in the Compress middleware was introduced in v3.1.0. The end-of-life v3 lines from v3.1 to v3.6 are affected and will not receive a patch. Upgrade to a patched version.\n\n## Patches\n\n- https://github.com/traefik/traefik/releases/tag/v3.7.18\n- https://github.com/traefik/traefik/releases/tag/v3.8.0-rc.2\n\n## For more information\n\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"GHSA-x5pf-cqh3-2gv8"}],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.1.0"},{"fixed":"v3.7.18"}]}],"fixed":["v3.7.18"],"provider":"github-repo-advisories","source":"GHSA-x5pf-cqh3-2gv8","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.8.0-rc.1"},{"fixed":"v3.8.0-rc.2"}]}],"fixed":["v3.8.0-rc.2"],"provider":"github-repo-advisories","source":"GHSA-x5pf-cqh3-2gv8","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-x5pf-cqh3-2gv8"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-x5pf-cqh3-2gv8"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-x5pf-cqh3-2gv8","url":"https://github.com/traefik/traefik/security/advisories/GHSA-x5pf-cqh3-2gv8","license":"GitHub Terms of Service","modified_at":"2026-11-12T10:01:26Z","relation":"self"}]}
