Traefik Kubernetes Ingress NGINX provider fails open when auth-secret resolution fails
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
| No fix yet |
| github.com/traefik/traefik/v2 Go |
|
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
| No fix yet |
| github.com/traefik/traefik/v2 Go |
|
| No fix yet |
Traefik is an HTTP reverse proxy and load balancer. From 3.7.0-ea.1 until 3.7.5, there is a medium severity vulnerability in Traefik's Kubernetes Ingress NGINX provider that causes affected routes to fail open. When an Ingress explicitly enables BasicAuth or DigestAuth through the supported nginx.ingress.kubernetes.io/auth-type and auth-secret annotations, but the referenced auth Secret cannot be resolved or parsed, Traefik logs the resolution error, skips installing the authentication middleware, and still emits a router to the backend service. A route that operators intended to protect is therefore published to the data plane without its authentication control, allowing unauthenticated access to the backend. The trigger is an invalid or unresolved auth dependency — a missing, malformed, unreadable, or policy-denied Secret — rather than an intentionally unprotected route. This vulnerability is fixed in 3.7.5.
From the CVE record · GitHub_M
Traefik's Kubernetes Ingress NGINX provider can publish a route without BasicAuth or DigestAuth when an explicitly referenced authentication Secret cannot be resolved or parsed. An unauthenticated network client can then access the backend; the trigger is a missing, malformed, unreadable, or policy-denied Secret, and no user interaction is required.
Operators using Traefik or its Go packages should check github.com/traefik/traefik/v3 versions from 3.7.0-ea.1 up to but not including 3.7.5; the listed github.com/traefik/traefik and github.com/traefik/traefik/v2 packages are affected in all versions and have no listed fix.