Skip to content

Instantly share code, notes, and snippets.

@alon710
Created August 5, 2026 23:30
Show Gist options
  • Select an option

  • Save alon710/55629b813908ae24f1e292f2b3f6a8d5 to your computer and use it in GitHub Desktop.

Select an option

Save alon710/55629b813908ae24f1e292f2b3f6a8d5 to your computer and use it in GitHub Desktop.
CVE-2026-65601: CVE-2026-65601: Namespace Confusion Vulnerability in Traefik Gateway API HTTPRoute BackendRef ExtensionRef Resolution - CVE Security Report

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

CVSS Score: 5.3 Published: 2026-08-05 Full Report: https://cvereports.com/reports/CVE-2026-65601

Summary

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.

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.

Technical Details

  • CWE ID: CWE-863 (Incorrect Authorization)
  • Attack Vector: Network
  • CVSS v4.0 Score: 5.3 (Medium)
  • EPSS Score: 0.00238
  • Exploit Status: None
  • CISA KEV Status: Not Listed

Affected Systems

  • Traefik Labs Traefik (Kubernetes Gateway API Provider)
  • Traefik: >= 3.7.0, <= 3.7.6 (Fixed in: 3.7.7)

Mitigation

  • Upgrade Traefik instances to patched version 3.7.7.
  • Audit and restrict Kubernetes Gateway API ReferenceGrant resources to trusted namespaces only.
  • Implement Kyverno or OPA Gatekeeper policies to block cross-namespace HTTPRoutes using ExtensionRef filters.

Remediation Steps:

  1. Identify all running Traefik deployments in the cluster utilizing the Gateway API provider.
  2. Update the Traefik container image tags to 3.7.7 in the respective deployment manifests or Helm values files.
  3. Apply the updated configuration using kubectl or GitOps pipelines to perform a rolling restart.
  4. Verify that the Traefik controller logs indicate version 3.7.7 is active and processing configurations without namespace resolution errors.

References


Generated by CVEReports - Automated Vulnerability Intelligence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment