CVE-2026-67309

Traefik v3.7.0 Path Traversal via RewriteTarget Authentication Bypass

Published Aug 1, 2026 CVSS 4.0 · 7.8 High EPSS < 1% KEV · Not listed
Description
Traefik versions >= v3.7.0 and <= v3.7.7 contain a path traversal vulnerability in the Kubernetes Ingress NGINX provider's RewriteTarget middleware (generated from the nginx.ingress.kubernetes.io/rewrite-target annotation). When an Ingress path uses a regex that captures attacker-controlled text without requiring a path separator (e.g., path /api(.*) with rewrite target /$1), a crafted request such as /api../admin matches the public router, is rewritten to a dot-segment traversal path (/../admin), and is forwarded without post-replacement normalization validation. A backend that normalizes dot segments resolves the path to a protected endpoint (e.g., /admin) reachable only through a separate router secured with BasicAuth, DigestAuth, or ForwardAuth, resulting in route-level authentication bypass. The issue is fixed in v3.7.8.

Analysis

AI-generated

Technical impact

Traefik versions 3.7.0 through 3.7.7 contain a path‑traversal flaw (CWE-22) in the Kubernetes Ingress NGINX provider’s RewriteTarget middleware. When an Ingress path regex captures user‑controlled text without a path separator, a request such as /api../admin rewrites to /../admin, a dot‑segment that is later resolved by the backend to a protected endpoint that normally requires authentication. The attacker can therefore access sensitive routes that are normally protected by BasicAuth, DigestAuth or ForwardAuth, leaking confidential data and potentially allowing further compromise.

Affected Systems

All installations of Traefik v3.7.0 to v3.7.7 that use the nginx.ingress.kubernetes.io/rewrite-target annotation in a Kubernetes Ingress resource are affected. The vulnerability is tied specifically to the RewriteTarget middleware in the NGINX provider of Traefik; systems that do not use the rewrite‑target annotation or use a different provider are not impacted.

Risk and Exploitability

The CVSS score of 7.8 classifies the vulnerability as high severity. No EPSS score is available, indicating no publicly disclosed exploit data at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Because the flaw can be triggered with a crafted HTTP request to a public router, the attack vector is remote; an attacker needs only to send a request that matches a vulnerable regex and can then bypass authentication to reach protected endpoints, achieving confidentiality and integrity impact.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Traefik to v3.7.8 or later, which fixes the rewrite‑target handling.
  • Review all Ingress resources that use the nginx.ingress.kubernetes.io/rewrite-target annotation and modify any regexes that capture user input without a path separator.
  • Configure downstream backends to reject or sanitize dot‑segment paths and ensure authentication is enforced on all sensitive routes.

Generated by OpenCVE AI on August 3, 2026 at 09:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8rxv-jg7p-wvg3 Traefik: Kubernetes Ingress NGINX RewriteTarget Path Traversal Allows Route-Level Authentication Bypass
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Traefik versions >= v3.7.0 and <= v3.7.7 contain a path traversal vulnerability in the Kubernetes Ingress NGINX provider's RewriteTarget middleware (generated from the nginx.ingress.kubernetes.io/rewrite-target annotation). When an Ingress path uses a regex that captures attacker-controlled text without requiring a path separator (e.g., path /api(.*) with rewrite target /$1), a crafted request such as /api../admin matches the public router, is rewritten to a dot-segment traversal path (/../admin), and is forwarded without post-replacement normalization validation. A backend that normalizes dot segments resolves the path to a protected endpoint (e.g., /admin) reachable only through a separate router secured with BasicAuth, DigestAuth, or ForwardAuth, resulting in route-level authentication bypass. The issue is fixed in v3.7.8.
Title Traefik v3.7.0 Path Traversal via RewriteTarget Authentication Bypass
First Time appeared Traefik
Traefik traefik
Weaknesses CWE-22
CPEs cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:*
Vendors & Products Traefik
Traefik traefik
References
Metrics cvssV4_0

{'score': 7.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Jul 29, 2026, 1:06 PM
Status
Analyzed
Published
Aug 1, 2026, 1:17 PM
Modified
Oct 8, 2026, 4:17 PM