Aug 5, 2026·7 min read·45 visits
Traefik fails to validate the crossProviderNamespaces allowlist for IngressRouteTCP service serversTransport configurations, enabling cross-provider namespace bypass.
An authorization bypass vulnerability in Traefik allows low-privileged users within unauthorized Kubernetes namespaces to reference privileged file-provider TCP serversTransports via IngressRouteTCP resources, bypassing the crossProviderNamespaces constraint.
Traefik is a modern HTTP reverse proxy and load balancer designed to integrate with cluster orchestrators like Kubernetes. In multi-tenant environments, security isolation between different namespaces is critical to ensure that tenants cannot interfere with or access administrative configurations. To enforce this boundary, Traefik implements a security configuration known as 'crossProviderNamespaces'. This setting acts as an access control list, defining which Kubernetes namespaces are allowed to reference resources across provider boundaries.
Historically, the 'crossProviderNamespaces' configuration array was correctly evaluated when processing standard IngressRoute HTTP configurations. This prevented unauthorized namespaces from accessing file-based resources, which often contain highly sensitive parameters such as mTLS client certificates, SPIFFE workload identities, or custom proxy-protocol setups. By maintaining strict provider-namespace isolation, administrators could ensure that low-privileged users in localized tenant namespaces could not use cluster-wide privileged configuration definitions.
However, a verification gap was introduced in the parsing path of the IngressRouteTCP configuration parser. Specifically, the parser failed to evaluate the namespace allowlist constraints when evaluating serversTransport bindings. As a result, any user capable of creating an IngressRouteTCP resource could bypass the intended namespace barriers to reference privileged, administrative-level transports. This logical flaw effectively allowed any low-privileged Kubernetes tenant to exploit sensitive backend transport layers, undermining the core multi-tenant security architecture of the host cluster.
The root cause of this vulnerability lies within the configuration compilation engine of Traefik's Kubernetes Custom Resource Definition (CRD) provider. When configuring network ingress, Traefik allows routers to bind to specific 'serversTransport' resources, which define the underlying TLS settings, socket options, and proxy behaviors for backend communication. These transports are defined across various providers, with the static file provider ('@file') typically reserved for cluster-wide, highly privileged transport definitions.
In the Kubernetes CRD provider codebase, specifically within the function 'makeTCPServersTransportKey' in 'pkg/provider/kubernetes/crd/kubernetes_tcp.go', the code parses references to administrative server transports. When a reference containing a provider separator (the '@' symbol) is parsed, the code must check whether the originating namespace is authorized to access the destination provider. While the HTTP parsing pipeline enforced this restriction using the 'isCrossProviderNamespaceAllowed' validator, the TCP configuration pipeline omitted this verification step.
Specifically, the vulnerable implementation of 'makeTCPServersTransportKey' checked for the presence of the provider namespace separator using a basic string evaluation. If the separator was detected, the method immediately returned the transport reference key, executing a fast return path without performing any validation against the 'crossProviderNamespaces' configuration. This programming oversight bypassed the authorized namespace collection completely, letting any IngressRouteTCP manifest bind to external provider configurations.
Analyzing the patch applied in commit 67501cbe7bc7774e26ecbd1c29af97f098e14b0b clarifies the exact missing validation step and the fix implementation. In the vulnerable release of pkg/provider/kubernetes/crd/kubernetes_tcp.go, the processing logic returned early upon encountering a provider separator.
// Vulnerable Code Logic
if strings.Contains(serversTransportName, providerNamespaceSeparator) {
return serversTransportName, nil
}This early return completely bypassed the namespace containment check. The patch corrected this behavior by embedding the proper verification check directly into the provider-separated evaluation block. By invoking the authorization checker helper function, the TCP configuration engine now validates the originating namespace against the active allowlist.
// Patched Code Logic
if strings.Contains(serversTransportName, providerNamespaceSeparator) {
if !p.AllowCrossNamespace && strings.HasSuffix(serversTransportName, providerNamespaceSeparator+providerName) {
return "", fmt.Errorf("invalid reference to serversTransport %s: namespace-name@kubernetescrd format is not allowed when crossnamespace is disallowed", serversTransportName)
}
if !isCrossProviderNamespaceAllowed(p.CrossProviderNamespaces, parentNamespace) {
return "", fmt.Errorf("serversTransport %q reference is not allowed: namespace %q is not in crossProviderNamespaces", serversTransportName, parentNamespace)
}
return serversTransportName, nil
}With this update, if an unauthorized namespace attempts to leverage a transport containing the @file suffix, the validation fails. The parsing sequence aborts, throwing an error and refusing to reconcile the unauthorized route. This ensures complete parity between the HTTP and TCP configurations and effectively closes the authorization bypass.
Exploitation of CVE-2026-65602 requires low-privileged administrative access inside a restricted namespace in a multi-tenant Kubernetes cluster. The attacker must target a cluster where a privileged, global transport is configured in a static file provider, such as an mTLS connection profile used for secure database or API gateway tunnels. The attacker does not need any administrative permissions outside of their local, designated namespace.
To execute the exploit, the malicious tenant crafts an IngressRouteTCP manifest that references the target file-provider transport. By applying this configuration to their namespace, they instruct the Traefik proxy controller to bind their custom backend service to the administrative-grade TCP transport. The key component of the exploit is the use of the @file provider suffix in the serversTransport key.
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: bypass-route
namespace: untrusted-tenant-namespace
spec:
entryPoints:
- websecure
routes:
- match: HostSNI(`exploit.internal.corp`)
services:
- name: internal-attacker-service
port: 443
serversTransport: admin-mtls-transport@fileOnce the controller reconciles this resource, the attacker can establish a TLS session targeting exploit.internal.corp. Traefik then routes the traffic to the specified internal backend service while using the sensitive client identity, proxy protocol flags, or backend certificates configured in admin-mtls-transport@file. This enables unauthorized operations, such as authenticating to downstream resources using administrative certificates.
The security impact of this vulnerability is characterized as an incorrect authorization check (CWE-863) resulting in privilege escalation (T1068). Although scored at 5.3 (Medium) under CVSS v4.0, the subsequent system confidentiality and integrity impacts are high. In modern enterprise environments, serversTransports are the standard mechanism for housing mutual TLS (mTLS) identities, making them critical security boundaries.
An attacker who successfully exploits this bypass can reuse backend connections established under a different security profile. This allows the attacker to compromise data integrity on target backends by masquerading as an administrative process. For instance, if the target transport utilizes SPIFFE workload certificates to prove microservice identity, the attacker can spoof this identity to access restricted internal components.
Furthermore, because the vulnerability allows the extraction of trust context via downstream service binding, it completely subverts the isolation model expected in multi-tenant environments. Although the attacker cannot directly read the raw certificate private keys from the file provider, they can route arbitrary TCP streams that use these keys, rendering the logical segregation of the Kubernetes cluster ineffective.
The primary remediation path is to upgrade the Traefik controller to a non-vulnerable version. Organizations running the 3.6 branch must upgrade to version 3.6.23 or higher, while those on the 3.7 branch must upgrade to 3.7.7 or higher. These patched releases correctly validate all TCP serversTransport references against the configured crossProviderNamespaces allowlist, halting the processing of unauthorized resources.
If upgrading immediately is not possible, administrators should actively review their static Traefik configurations. If the crossProviderNamespaces attribute is omitted or nil, Traefik defaults to a permissive configuration where all cross-provider boundaries are allowed. Ensuring this setting is defined and restricted to only administrative namespaces (e.g., kube-system or traefik-admin) is a vital step in reducing the exposure window.
To proactively audit existing environments for exploitation, security engineers can execute a target scan using kubectl. The following command extracts all IngressRouteTCP configurations across the cluster and filters for references to file-provider transports. The results can then be manually compared against the list of authorized namespaces:
kubectl get ingressroutetcp --all-namespaces -o json | jq '.items[] | select(.spec.routes[].services[].serversTransport | strings | contains("@file")) | {name: .metadata.name, namespace: .metadata.namespace, transport: .spec.routes[].services[].serversTransport}'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Traefik Traefik Labs | >= 3.6.0, <= 3.6.22 | 3.6.23 |
Traefik Traefik Labs | >= 3.7.0, <= 3.7.6 | 3.7.7 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-863 (Incorrect Authorization) |
| Attack Vector | Network (Remote) |
| CVSS v4.0 | 5.3 (Medium) |
| Impact Type | Subsequent System Integrity and Confidentiality (High) |
| Exploit Status | No public weaponized exploits or active exploitation reported |
| Mitre ATT&CK Technique | T1068 (Exploitation for Privilege Escalation) |
The software performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly execute the check, allowing an attacker to bypass intended security policies.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.