{"id":"CVE-2021-32813","published":"2021-08-03T22:50:11Z","modified":"2024-08-03T23:33:55Z","title":"Drop Headers via Malicious Connection Header","vendor":"traefik","product":"traefik","tier":"tail","description":{"text":"Traefik is an HTTP reverse proxy and load balancer. Prior to version 2.4.13, there exists a potential header vulnerability in Traefik's handling of the Connection header. Active exploitation of this issue is unlikely, as it requires that a removed header would lead to a privilege escalation, however, the Traefik team has addressed this issue to prevent any potential abuse. If one has a chain of Traefik middlewares, and one of them sets a request header, then sending a request with a certain Connection header will cause it to be removed before the request is sent. In this case, the backend does not see the request header. A patch is available in version 2.4.13. There are no known workarounds aside from upgrading.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.011,"percentile":0.66474,"provenance":"source"},"cwes":[{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"references":[{"url":"https://github.com/traefik/traefik/security/advisories/GHSA-m697-4v8f-55qg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/traefik/traefik/pull/8319/commits/cbaf86a93014a969b8accf39301932c17d0d73f9","tags":["x_refsource_MISC"]},{"url":"https://github.com/traefik/traefik/releases/tag/v2.4.13","tags":["x_refsource_MISC"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":13.29},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"traefik","affectedVersions":[{"vendor":"traefik","product":"traefik","versions":["< 2.4.13","<= 1.7.30"]}],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","vulnerableRanges":["<2.4.13"],"patched":["2.4.13"],"from":["GHSA-m697-4v8f-55qg","GO-2022-0923"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/traefik/traefik","vulnerableRanges":["<=1.7.30","all versions"],"patched":[],"from":["GHSA-m697-4v8f-55qg","GO-2022-0923"],"provenance":"source"}],"summary":{"text":"Traefik, the HTTP reverse proxy and load balancer, mishandles the Connection header in its middleware chain, so a request-header set by one middleware can be stripped before the request reaches the backend. An attacker who can send HTTP requests to the proxy, with no authentication or user interaction needed, can craft a Connection header to cause that header to be dropped, but only where the backend relies on that header for a security decision.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:30Z"},"euvd":{"id":"EUVD-2021-1790","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-traefik-cve-2021-32813","children":[{"from":"CVE-2021-32813","to":"CVE-2024-45410","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/middlewares/auth/forward.go","pkg/middlewares/headers/headers.go"],"commits":["https://github.com/traefik/traefik/commit/cbaf86a93014a969b8accf39301932c17d0d73f9","https://github.com/traefik/traefik/commit/584144100524277829f26219baaab29a53b8134f"],"basis":"shared function","functions":["NewForward"]}]}],"packageHistory":[{"cve":"CVE-2019-20894","published":"2020-07-02","fixed":"2.2.2","kev":false},{"cve":"CVE-2020-15129","published":"2020-07-30","fixed":"2.3.0-rc6","kev":false,"link":{"from":"CVE-2020-15129","to":"CVE-2021-32813","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/traefik/traefik/v2","fromFixed":"2.3.0-rc6","toFixed":"2.4.13","daysApart":369}]}},{"cve":"CVE-2021-32813","published":"2021-08-03","fixed":"2.4.13","kev":false},{"cve":"CVE-2022-23632","published":"2022-02-17","fixed":"2.6.1","kev":false,"link":{"from":"CVE-2021-32813","to":"CVE-2022-23632","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/traefik/traefik/v2","fromFixed":"2.4.13","toFixed":"2.6.1","daysApart":198}]}},{"cve":"CVE-2022-39271","published":"2022-10-11","fixed":"2.9.0-rc5","kev":false},{"cve":"CVE-2022-23469","published":"2022-12-08","fixed":"2.9.6","kev":false}],"package":"Go:github.com/traefik/traefik/v2"}}