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.
Published: 2026-08-01
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Mon, 03 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 01 Aug 2026 12:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-03T16:00:57.468Z

Reserved: 2026-07-29T13:06:35.178Z

Link: CVE-2026-67309

cve-icon Vulnrichment

Updated: 2026-08-03T16:00:52.181Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T09:45:04Z

Weaknesses
  • CWE-22

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