Traefik: Cross-user response poisoning via proxied CONNECT on Traefik's shared backend keep-alive pool
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
|
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
| No fix yet |
Traefik is an open source HTTP reverse proxy and load balancer. Prior to 2.11.53, 3.6.24, and 3.7.9, Traefik's default HTTP reverse proxy forwards a plain HTTP/2 or HTTP/3 CONNECT request and its body to an HTTP/1.1 upstream through a shared net/http.Transport. When the upstream answers the CONNECT with a keep-alive non-2xx response and does not drain the body, Traefik returns the desynchronized backend socket to its shared pool and reuses it for other clients. An unauthenticated attacker can use this behavior to make a different client read the attacker's smuggled response, which can include authenticated or private content from another request. The ForwardAuth middleware with forwardBody true and preserveRequestMethod true can re-issue a CONNECT with the buffered body attached, exposing the auth-client pool to the same desynchronization. This issue is fixed in 2.11.53, 3.6.24, and 3.7.9.
From the CVE record · GitHub_M
Traefik's default HTTP reverse proxy can reuse a desynchronized upstream connection after forwarding an HTTP/2 or HTTP/3 CONNECT request to an HTTP/1.1 upstream. If that upstream returns a keep-alive non-2xx response without draining the request body, an unauthenticated attacker can cause another client to read a smuggled response that may contain private or authenticated content. Certain ForwardAuth configurations can expose the auth-client connection pool to the same issue.
Check deployments using Go packages github.com/traefik/traefik/v2 before 2.11.53, github.com/traefik/traefik/v3 before 3.6.24 or from 3.7.0 to before 3.7.9, or github.com/traefik/traefik at any version.