Traefik: ForwardAuth trustForwardHeader=false allows spoofed X-Forwarded-Prefix to bypass auth
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik/v2 Go |
|
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik/v2 Go |
|
2.11.43| github.com/traefik/traefik Go |
| No fix yet |
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.43, 3.6.14, and 3.7.0-rc.2, there is an authentication bypass vulnerability in Traefik's ForwardAuth middleware when trustForwardHeader=false is configured and Traefik is deployed behind a trusted upstream proxy. This issue has been patched in versions 2.11.43, 3.6.14, and 3.7.0-rc.2.
From the CVE record · GitHub_M
Traefik's ForwardAuth middleware is vulnerable when trustForwardHeader=false and Traefik is deployed behind a trusted upstream proxy. Under those conditions, an attacker can bypass authentication.
Check deployments using Go packages github.com/traefik/traefik/v3 (>=3.7.0-ea.1 to <3.7.0-rc.2 or >=3.0.0-beta1 to <3.6.14), github.com/traefik/traefik/v2 (<2.11.43), or github.com/traefik/traefik (all versions).