CVE-2026-54761: Traefik Kubernetes Gateway Namespace Bypass Allows Internal Service Exposure
Traefik, a widely-deployed reverse proxy and load balancer, contains a flaw in how it enforces access controls when Kubernetes HTTPRoutes specify multiple backend services. An attacker with the ability to create HTTP routes in a non-allowed namespace can exploit a namespace validation bypass to expose sensitive internal Traefik services—including the admin API, dashboard, and REST interface—to the network. The vulnerability stems from Traefik checking permissions against the wrong namespace when evaluating cross-provider service references, allowing an attacker to pivot through an allow-listed namespace to reach forbidden internal endpoints. This affects versions prior to 3.6.21 and 3.7.5.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- Weaknesses (CWE)
- CWE-284, CWE-863
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-23 / 2026-06-26
NVD description (verbatim)
Traefik is an HTTP reverse proxy and load balancer. Prior to 3.6.21 and 3.7.5, there is a high severity vulnerability in Traefik's Kubernetes Gateway provider affecting the crossProviderNamespaces allowlist. For HTTPRoute rules that declare multiple (WRR) backendRefs, Traefik evaluates the allowlist against the target backendRef.namespace instead of the route's own namespace. As a result, an HTTPRoute created in a namespace that is not allow-listed can reference a cross-provider TraefikService such as api@internal, dashboard@internal or rest@internal by pointing backendRef.namespace at an allow-listed namespace covered by a Gateway API ReferenceGrant, exposing internal Traefik services on the data plane. Exploitation requires the ability to create an accepted HTTPRoute and a matching ReferenceGrant from an allow-listed namespace; it does not require any change to Traefik static configuration, RBAC, or the deployment itself. This vulnerability is fixed in 3.6.21 and 3.7.5.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in the Kubernetes Gateway provider's handling of the crossProviderNamespaces allowlist when HTTPRoute resources declare weighted round-robin (WRR) backend references. During policy evaluation, Traefik incorrectly validates the allowlist against the backendRef.namespace field rather than the HTTPRoute's own namespace. An attacker can craft an HTTPRoute in a non-whitelisted namespace that references internal TraefikServices (api@internal, dashboard@internal, rest@internal) by specifying a backendRef.namespace pointing to an allow-listed namespace. When coupled with a ReferenceGrant from the allow-listed namespace, the misconfigured access control permits the internal service to be exposed on the data plane. The flaw requires no modification to static configuration, RBAC policies, or pod permissions.
Business impact
Exposure of Traefik's internal administrative interfaces—API, dashboard, and REST services—can enable unauthorized operational oversight, configuration disclosure, and potential lateral movement within Kubernetes clusters. An attacker who gains unauthenticated or low-privilege access to these endpoints may enumerate routes, view secrets, modify traffic policies, or gather intelligence for follow-on attacks. For organizations operating multi-tenant Kubernetes environments or using Traefik as a gateway between trust boundaries, this vulnerability materially weakens namespace isolation guarantees and could violate compliance postures regarding data compartmentalization.
Affected systems
Traefik versions 3.6.x prior to 3.6.21 and 3.7.x prior to 3.7.5 are vulnerable. Organizations running Traefik as a Kubernetes Gateway API provider with the crossProviderNamespaces allowlist feature enabled are at risk. The vulnerability does not affect installations that (a) do not use the Kubernetes Gateway provider, (b) do not rely on namespace-based access controls, or (c) have upgraded to patched versions.
Exploitability
Exploitation is feasible for any principal with permission to create HTTPRoute resources in a non-allow-listed namespace and the ability to coordinate with an allow-listed namespace to create a matching ReferenceGrant. No authentication bypass, privilege escalation, or code injection is required; the attack leverages misconfigured policy enforcement. In shared or multi-tenant Kubernetes clusters where developers have broad HTTPRoute creation rights, the attack surface is substantial. The CVSS score of 7.1 (High) reflects the requirement for authenticated access and lack of direct impact on availability, though confidentiality and integrity risks are significant.
Remediation
Upgrade Traefik to version 3.6.21 or later for the 3.6.x branch, or to version 3.7.5 or later for the 3.7.x branch. Verify against the vendor's release notes to confirm the patch addresses the crossProviderNamespaces validation logic. Organizations unable to patch immediately should restrict HTTPRoute and ReferenceGrant creation rights via Kubernetes RBAC, disable the crossProviderNamespaces allowlist if not required, or isolate Traefik's internal endpoints from network exposure.
Patch guidance
Apply the latest patch from the Traefik project: 3.6.21 for the 3.6 series and 3.7.5 for the 3.7 series. Review your Traefik Helm values or Kubernetes manifests to confirm the Gateway provider is enabled and crossProviderNamespaces rules are in use before patching, as the vulnerability only manifests in that configuration. After patching, validate that HTTPRoute policies correctly validate the route namespace rather than the backend reference namespace, and test that internal services are no longer accessible from non-allow-listed namespaces.
Detection guidance
Monitor for HTTPRoute resources created in namespaces not listed in the crossProviderNamespaces allowlist that reference internal services (api@internal, dashboard@internal, rest@internal) via backendRef.namespace fields pointing to allow-listed namespaces. Audit ReferenceGrant objects that permit cross-namespace references from non-allow-listed namespaces to internal services. Enable Traefik access logs and Kubernetes API audit logs to identify requests to internal endpoints originating from unexpected namespaces. Search for patterns where backendRef.namespace differs from the HTTPRoute's own namespace in multi-backend route definitions.
Why prioritize this
This vulnerability merits immediate patching due to the combination of high confidentiality impact (internal service exposure), straightforward exploitability for authenticated users, and the broad reliance on Kubernetes namespace isolation in multi-tenant deployments. Organizations with shared Kubernetes clusters or strict namespace-based trust boundaries should treat this as a critical update. The lack of KEV status does not diminish urgency; the misconfiguration is easily discoverable and exploitable without sophisticated tooling.
Risk score, explained
The CVSS 3.1 score of 7.1 (High) captures a network-accessible flaw requiring low privilege (HTTPRoute creation rights) and no user interaction. The vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N reflects high confidentiality impact (exposure of internal APIs and dashboards), limited integrity risk (potential for configuration tampering), and no direct availability impact. The score does not account for organizational context: in multi-tenant environments or clusters with broad developer permissions, practical risk is elevated.
Frequently asked questions
Do I need to have crossProviderNamespaces explicitly configured to be vulnerable?
Yes. This vulnerability only manifests when the Kubernetes Gateway provider is enabled and the crossProviderNamespaces allowlist feature is in use. Traefik installations not relying on Gateway API or using only single-namespace deployments are unaffected.
Can an attacker without any Kubernetes permissions exploit this?
No. An attacker must have the ability to create HTTPRoute resources in a non-allow-listed namespace and coordinate with a principal in an allow-listed namespace to create a matching ReferenceGrant. This typically requires developer-level or namespace-admin access.
What are api@internal, dashboard@internal, and rest@internal?
These are internal Traefik services that expose the admin API, web dashboard, and REST configuration interface. Access to these endpoints should be restricted to administrators; exposure on the data plane allows unauthorized operational visibility and potential modification of routing policies.
Will upgrading break my existing HTTPRoute rules?
The patch corrects a security flaw in policy enforcement; legitimate HTTPRoute rules that respect namespace boundaries will continue to function. Rules that currently exploit this vulnerability by referencing internal services from non-allow-listed namespaces will be blocked, which is the intended behavior.
This analysis is based on the CVE description and vendor advisory as of the publication date. Verify all patch versions and remediation steps against the official Traefik GitHub releases and documentation. SEC.co does not provide legal or compliance advice; consult your organization's security and legal teams to assess impact and remediation timelines. No proof-of-concept or exploitation code is provided. This vulnerability assessment reflects current information and may be updated as additional context emerges. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-49823HIGHFission Kubernetes Namespace Isolation Bypass
- CVE-2026-49824HIGHFission Kubernetes Admission Webhook Namespace Validation Bypass (CVSS 8.5)
- CVE-2016-20075HIGHWordPress Ultimate Product Catalog 3.8.6 Arbitrary File Upload (CVSS 8.8)
- CVE-2025-14774HIGHABB T-MAC Plus Denial-of-Service Vulnerability (CVSS 7.4)
- CVE-2025-22426HIGHAndroid ComputerEngine URI Escalation Privilege Vulnerability
- CVE-2025-32348HIGHAndroid Local Privilege Escalation via Missing Permission Check
- CVE-2025-46315HIGHmacOS Tahoe Permissions Flaw Enables Unauthorized Data Access
- CVE-2025-66391HIGHCitrix Cloud Read-Only Account Privilege Escalation to Account Takeover