CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-65601

CVE-2026-65601: Namespace Confusion Vulnerability in Traefik Gateway API HTTPRoute BackendRef ExtensionRef Resolution

Alon Barad
Alon Barad
Software Engineer

Aug 5, 2026·6 min read·76 visits

Executive Summary (TL;DR)

Traefik versions 3.7.0 through 3.7.6 are vulnerable to namespace confusion where backend-level custom filters (ExtensionRefs) are resolved using the backend service's namespace instead of the source HTTPRoute's namespace, permitting cross-namespace middleware hijacking.

CVE-2026-65601 is a critical security vulnerability within Traefik's implementation of the Kubernetes Gateway API. Due to variable reuse and incorrect namespace resolution logic in the routing engine, Traefik resolved custom extension filters (such as Traefik CRD Middlewares) inside a target backend service's namespace rather than the originating HTTPRoute's namespace. This flaw enables a low-privileged tenant to bypass namespace isolation boundaries and invoke highly privileged middleware components in foreign namespaces to which they only have service-level routing access.

Vulnerability Overview

The Kubernetes Gateway API provides a standardized mechanism for routing traffic into clusters, relying on fine-grained authorization controls to preserve isolation in multi-tenant environments. An integral control is the ReferenceGrant resource, which allows a backend owner in one namespace to authorize routing components (such as an HTTPRoute) from a foreign namespace to bind to their backend Services.

However, in Traefik's Gateway API provider implementation, a critical vulnerability exists when processing custom middleware filters defined under a backend reference (HTTPRoute.spec.rules[].backendRefs[].filters[]). Traefik supports defining custom filters using the ExtensionRef type, which translates to Traefik Custom Resource Definition (CRD) Middleware objects.

When evaluating these backend-level filters, the controller incorrectly binds the resolution context of the filter to the target Service's namespace instead of the source HTTPRoute namespace. This allows unauthorized cross-namespace resource access, exposing highly privileged middlewares (such as those managing authentication, headers injection, or rate-limiting) to unintended tenants.

Root Cause Analysis

The root cause of CVE-2026-65601 lies within the file pkg/provider/kubernetes/gateway/httproute.go inside the loadService function. During HTTPRoute compilation, the Traefik Gateway API controller iterates through each rule's backend references to resolve backend Services and associate corresponding filters.

When resolving a cross-namespace reference, the controller evaluates the target namespace defined within the backendRef object. The function temporarily overwrites a local string variable named namespace with the target Service's namespace (backendRef.Namespace). This value is subsequently utilized to perform the Kubernetes API lookup for the corresponding Service object.

Crucially, after resolving the Service, the controller invokes p.loadMiddlewares() to parse and load the associated filters. Because the local namespace variable was mutated to reference the target Service's namespace, the call to loadMiddlewares uses this overwritten value instead of the original HTTPRoute namespace. Consequently, Traefik queries the target namespace for the requested CRD Middleware objects, bypassing the explicit tenant access barriers defined by Gateway API namespaces.

Code Analysis

To understand the vulnerability mechanics, examine the difference between the vulnerable and patched code within pkg/provider/kubernetes/gateway/httproute.go under the commit 655d6324ab4a1475892a958d4bae389720a67ea9.

Below is the vulnerable implementation:

// VULNERABLE CODE PATH
// Inside loadService(...)
 
if backendRef.Namespace != nil {
    // The local namespace variable is overwritten here with the backend namespace
    namespace = string(*backendRef.Namespace)
}
 
// ... service resolution logic utilizing the overwritten namespace ...
 
// Bug: The mutated namespace variable is passed to loadMiddlewares
middlewares, err := p.loadMiddlewares(conf, namespace, serviceName, backendRef.Filters, pathMatch)
if err != nil {
    return serviceName, &metav1.Condition{
        Type:               string(gatev1.RouteConditionResolvedRefs),
        // ...
    }
}

In the patched code, the resolution of middlewares is modified to reference the originating route's namespace explicitly:

// PATCHED CODE PATH
// Inside loadService(...)
 
if backendRef.Namespace != nil {
    namespace = string(*backendRef.Namespace)
}
 
// ... service resolution logic utilizing the overwritten namespace ...
 
// Fix: route.Namespace is used instead of the mutated namespace variable
middlewares, err := p.loadMiddlewares(conf, route.Namespace, serviceName, backendRef.Filters, pathMatch)
if err != nil {
    return serviceName, &metav1.Condition{
        Type:               string(gatev1.RouteConditionResolvedRefs),
        // ...
    }
}

This explicit call ensures that even if Traefik queries the destination namespace to bind the destination Service, all filters are retrieved strictly from the security context of the tenant owning the HTTPRoute.

Exploitation Methodology

Exploitation of this vulnerability requires that a target namespace contains a privileged Middleware resource and has granted service-level access to the attacker's namespace via a ReferenceGrant. It does not require special administrative privileges.

First, the attacker identifies a legitimate ReferenceGrant that allows their namespace (e.g., default) to send traffic to a target namespace (e.g., production). They target a service inside production called secure-api.

Second, the attacker inspects or guesses the names of existing Middleware CRDs in the production namespace. For example, a target middleware named admin-auth-bypass could inject a trusted custom header like X-Admin-Token: supersecret to the downstream container.

Third, the attacker authors and deploys a malicious HTTPRoute in the default namespace:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata: 
  name: attack-route
  namespace: default
spec:
  parentRefs:
    - name: public-gateway
  rules:
    - backendRefs:
        - name: secure-api
          namespace: production
          port: 80
          filters:
            - type: ExtensionRef
              extensionRef:
                group: traefik.io
                kind: Middleware
                name: admin-auth-bypass

When Traefik compiles this route, it evaluates secure-api in the production namespace, changes the context namespace to production, and subsequently fetches admin-auth-bypass from production. The attacker successfully mounts a privileged middleware onto their route, gaining unauthorized administrative capabilities.

Impact Assessment

The impact of CVE-2026-65601 is evaluated based on the compromise of downstream applications and boundary controls. Since Traefik acts as the primary ingress controller and reverse proxy, any failure in routing boundaries translates to direct downstream exploitation.

By hijacking middlewares from foreign namespaces, attackers can bypass critical access controls. This includes executing header manipulation middlewares to spoof authentication payloads, utilizing rate-limiting configurations of other tenants to degrade performance, or redirecting request flows using forward-auth configurations to leak sensitive transaction tokens.

While the direct impact on the Traefik control plane itself is limited (no direct host access or container breakout), the subsequent systems suffer high confidentiality and integrity risks. This matches the CVSS 4.0 assessment where subsequent systems confidentiality (SC) and integrity (SI) are rated as High.

Remediation and Prevention

The primary remediation for CVE-2026-65601 is upgrading the Traefik instance to version 3.7.7 or later. The patch permanently separates the target service's namespace from the lookup context of backend-level filters.

If immediate upgrades are impossible, security teams should implement the following containment measures:

  1. Restrict ReferenceGrants: Review and eliminate overly permissive ReferenceGrant configurations in the cluster. Ensure that namespaces containing sensitive configurations or middlewares do not allow service-level references from untrusted tenant namespaces.

  2. Policy Enforcement: Deploy an admission controller (such as OPA Gatekeeper or Kyverno) to block HTTPRoute definitions in tenant namespaces that utilize ExtensionRef filters inside cross-namespace backendRefs blocks. A Kyverno rule can inspect user submissions and reject any HTTPRoute where backendRefs[].namespace is defined and backendRefs[].filters[].extensionRef is present.

Official Patches

Traefik LabsOfficial GitHub Security Advisory for Traefik Namespace Confusion

Fix Analysis (2)

Technical Appendix

CVSS Score
5.3/ 10
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
EPSS Probability
0.24%
Top 85% most exploited

Affected Systems

Traefik Labs Traefik (Kubernetes Gateway API Provider)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Traefik
Traefik Labs
>= 3.7.0, <= 3.7.63.7.7
AttributeDetail
CWE IDCWE-863 (Incorrect Authorization)
Attack VectorNetwork
CVSS v4.0 Score5.3 (Medium)
EPSS Score0.00238
Exploit StatusNone
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-863
Incorrect Authorization

The software performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly obtain or verify the identity, permissions, or context of the actor, leading to improper resource binding.

References & Sources

  • [1]Traefik Security Advisory GHSA-qq9q-x9w4-chhj
  • [2]Traefik Code Patch Commit 655d6324ab4a1475892a958d4bae389720a67ea9
  • [3]Traefik Code Patch Commit 26c96a3935cafb473f4a5bae1886560d9aa4e4f0
  • [4]VulnCheck Security Advisory
  • [5]Wiz Vulnerability DB Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 days ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.

Amit Schendel
Amit Schendel
11 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).

Alon Barad
Alon Barad
10 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
8 views•9 min read