ZeroHour

CVE-2026-88877

moderate

Authentication Bypass in Traefik Kubernetes ingress-nginx Provider

CVSS 4.0
9.3 critical
EPSS
Published
()
Modified
AI analysis

Traefik Proxy v3.7.0 through v3.7.11, when running the Kubernetes ingress-nginx provider, mishandles Ingresses that combine an authentication annotation (e.g. BasicAuth) with the nginx.ingress.kubernetes.io/from-to-www-redirect annotation, generating an extra 'sibling' router that matches on the host alone, carries only a RedirectRegex middleware, and points at the parent router's protected backend service. An attacker triggers the flaw by sending a request whose Host header carries a non-numeric or empty port (for example 'Host: www.example.com:x'), which the host matcher's canonicalization via net.SplitHostPort selects for the sibling router; the redirect pattern does not match, and because RedirectRegex is not a terminal handler the request is proxied straight to the backend with none of the Ingress's annotation-derived middlewares applied. The result is a complete bypass of authentication and of every other annotation-derived control on that route, including source-IP allowlisting, granting unauthenticated access to otherwise protected services. Only Traefik v3.7.0-v3.7.11 deployments using the Kubernetes ingress-nginx provider with Ingresses carrying both annotations are affected; Traefik v2 and v3 releases before v3.7.0 are not. The flaw is rated 9.3 (critical) under CVSS 4.0, is not in CISA's KEV, and there is no known public proof-of-concept or reported exploitation.

What to do: Upgrade to Traefik v3.7.12 or later. Where an immediate upgrade is not possible, remove the nginx.ingress.kubernetes.io/from-to-www-redirect annotation from any Ingress that also carries an authentication annotation, or enforce access control at another layer (e.g. network policies or an upstream gateway) until patched. Audit clusters for Ingresses combining these two annotations to identify which protected routes may be exposed to unauthenticated access.

Affected
Traefik Labs Traefik Proxy (Kubernetes ingress-nginx provider)>= v3.7.0 and <= v3.7.11 (fixed in v3.7.12; Traefik v2 and v3 releases before v3.7.0 not affected)
Estimated exposure
moderateon the order of 1,000-10,000 deployments realistically affected (exact count unknown) — Traefik is among the most widely adopted cloud-native reverse proxies and ingress controllers, but actual exposure is narrowed to clusters running the v3.7.x line with the Kubernetes ingress-nginx provider and Ingresses that pair an…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Traefik is a HTTP reverse proxy and load balancer. In versions >= v3.7.0 and <= v3.7.11, the Kubernetes ingress-nginx provider mishandles Ingresses that carry both an authentication annotation and the nginx.ingress.kubernetes.io/from-to-www-redirect annotation. For such Ingresses the provider creates an additional 'sibling' router that matches on the host alone, carries only the RedirectRegex middleware, and still points at the parent router's protected backend service. Because RedirectRegex is not a terminal handler, a request its pattern does not match is forwarded to the backend, and because the redirect pattern only accepts a numeric port while Traefik's host matcher canonicalizes the authority via net.SplitHostPort, a request with a non-numeric or empty port (for example 'Host: www.example.com:x') selects the sibling router, misses the redirect, and is proxied to the protected backend with none of the Ingress's annotation-derived middlewares applied. This discards not only authentication (e.g. BasicAuth) but every annotation-derived middleware, including source-IP allowlisting. Traefik v2 and v3 releases before v3.7.0 are not affected. The issue is fixed in v3.7.12.

Vendors
traefik
Products
traefik
Weakness
CWE-639
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.