Skip to main content
Vulnerability Database/CVE-2026-112778

CVE-2026-112778: Traefik Auth Bypass Vulnerability

CVE-2026-112778 is an authentication bypass flaw in Traefik that allows attackers to bypass namespace-based tenant isolation. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112778 Overview

CVE-2026-112778 is a missing authorization vulnerability [CWE-862] in Traefik, the cloud-native edge router. The flaw affects Traefik versions before 2.11.46, 3.x before 3.6.17, and 3.7.0. The Kubernetes Ingress provider does not validate namespaces when resolving references in Ingress and Service annotations. Attackers with permission to create or update Ingress or Service resources in one namespace can reference Middlewares, ServersTransports, and TLSOptions from other namespaces. This bypasses namespace-based tenant isolation in multi-tenant Kubernetes clusters.

Critical Impact

Tenants sharing a Traefik-managed cluster can steal injected credentials and reuse client certificates belonging to other tenants by crafting router.middlewares or service.serverstransport annotations.

Affected Products

  • Traefik versions prior to 2.11.46
  • Traefik 3.x versions prior to 3.6.17
  • Traefik version 3.7.0

Discovery Timeline

  • 2026-10-19 - CVE-2026-112778 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112778

Vulnerability Analysis

Traefik's Kubernetes Ingress provider reads annotations on Ingress and Service resources to attach routing primitives such as middlewares, server transports, and TLS options. These primitives are themselves Kubernetes resources that live in specific namespaces and are typically used to inject sensitive material. Examples include BasicAuth or ForwardAuth credentials, mutual TLS client certificates, and custom TLS trust bundles.

In multi-tenant clusters, platform operators rely on namespace boundaries to separate tenants and their secrets. The affected Traefik versions resolve annotation values that reference cross-namespace objects without verifying that the referenced resource belongs to the same namespace as the Ingress or Service. A tenant with Ingress or Service write access in its own namespace can therefore force Traefik to load and apply a middleware or transport owned by another tenant.

Root Cause

The root cause is missing authorization logic in the Kubernetes Ingress provider's annotation resolver. The provider accepts fully qualified namespace/name references in traefik.ingress.kubernetes.io/router.middlewares and traefik.ingress.kubernetes.io/service.serverstransport annotations without checking that the caller's namespace matches the target namespace. No RBAC or admission check compensates for the missing validation inside Traefik itself.

Attack Vector

An attacker needs the ability to create or modify Ingress or Service objects in any namespace watched by Traefik. The attacker sets the router.middlewares annotation to reference a middleware in a victim namespace, for example a ForwardAuth middleware that injects a bearer token. When traffic flows through the attacker's Ingress, Traefik applies the victim's middleware and leaks the injected credential to the attacker-controlled backend. The same technique works for ServersTransport resources, allowing the attacker to reuse client certificates provisioned for another tenant.

See the GitHub Security Advisory GHSA-rh7m-2m44-x32f and the VulnCheck Advisory on Traefik for additional technical context.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-112778

Indicators of Compromise

  • Ingress or Service resources containing router.middlewares or service.serverstransport annotations referencing a namespace different from the resource's own namespace.
  • Traefik access logs showing requests routed through middlewares whose owning namespace does not match the originating Ingress namespace.
  • Unexpected outbound requests from backends to attacker-controlled endpoints carrying authentication headers that originated from another tenant's middleware.

Detection Strategies

  • Audit all Ingress and Service manifests cluster-wide and flag any annotation value in the namespace/name form where namespace does not equal metadata.namespace.
  • Enable Traefik access and middleware logging and correlate middleware identifiers with the namespace of the Ingress that invoked them.
  • Review Kubernetes audit logs for create and update actions on Ingress and Service objects that introduce or modify the vulnerable annotations.

Monitoring Recommendations

  • Deploy an admission policy (OPA Gatekeeper, Kyverno, or ValidatingAdmissionPolicy) that rejects cross-namespace references in Traefik annotations.
  • Alert on changes to Traefik Middleware, ServersTransport, and TLSOption custom resources that handle credentials or client certificates.
  • Monitor Traefik version drift and ensure cluster inventories report patched builds.

How to Mitigate CVE-2026-112778

Immediate Actions Required

  • Upgrade Traefik to 2.11.46, 3.6.17, or 3.7.1 or later as applicable to your deployment track.
  • Enumerate all Ingress and Service annotations in watched namespaces and remove any cross-namespace references that were not explicitly authorized.
  • Rotate credentials, bearer tokens, and client certificates referenced by middlewares and server transports that may have been exposed.

Patch Information

Traefik maintainers fixed CVE-2026-112778 by enforcing namespace validation on annotation-based references in the Kubernetes Ingress provider. Apply the fix by upgrading to Traefik 2.11.46, 3.6.17, or 3.7.1. Refer to the GitHub Security Advisory GHSA-rh7m-2m44-x32f for the exact commits and release notes.

Workarounds

  • Restrict Ingress and Service create/update RBAC permissions to trusted operators until Traefik is upgraded.
  • Deploy an admission controller policy that denies annotations referencing resources outside the submitting namespace.
  • Scope Traefik's --providers.kubernetesingress.namespaces flag so each Traefik instance only watches a single tenant namespace, eliminating cross-namespace resolution.
bash
# Example Kyverno policy snippet to block cross-namespace Traefik annotations
# Replace with validated policy before production use
# See: https://github.com/traefik/traefik/security/advisories/GHSA-rh7m-2m44-x32f

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.