Traefik: SNICheck ignores wildcard TLSOptions mappings, allowing domain-fronted mTLS bypass
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 |
|
|
Traefik is an HTTP reverse proxy and load balancer. From 3.7.0 until 3.7.3, there is a high severity vulnerability in Traefik's domain-fronting protection (SNICheck) that allows an unauthenticated client to bypass mutual TLS enforced through wildcard router TLSOptions. When a router uses a wildcard host rule such as Host(*.example.com) with stricter TLS options (for example RequireAndVerifyClientCert), SNICheck resolves the TLS options for the HTTP Host header using exact map lookups only and never applies wildcard matching. If another permissive SNI is served on the same entrypoint, an attacker can complete the TLS handshake under the permissive options and then send an HTTP Host header targeting the wildcard-protected backend, reaching it without presenting a client certificate. This affects the regular HTTPS / HTTP-2 path and does not require HTTP/3. This vulnerability is fixed in 3.7.3.
From the CVE record · GitHub_M
Traefik's SNICheck can fail to apply stricter TLS options to a wildcard host rule. If a permissive SNI is served on the same entrypoint, an unauthenticated network client can reach the wildcard-protected backend without a client certificate by using that SNI for the TLS handshake and the protected host in the HTTP Host header. This affects regular HTTPS and HTTP/2; HTTP/3 is not required.
Teams running Traefik through Go package github.com/traefik/traefik/v2 before 2.11.48 or github.com/traefik/traefik/v3 from 3.7.0 up to, but not including, 3.7.3 should check their deployments.