Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/traefik/traefik/v3
  4. ›
  5. CVE-2026-67309

CVE-2026-67309: Traefik: Kubernetes Ingress NGINX RewriteTarget Path Traversal Allows Route-Level Authentication Bypass

August 6, 2026

There is a high severity vulnerability in Traefik’s Kubernetes Ingress NGINX provider. When an Ingress uses the nginx.ingress.kubernetes.io/rewrite-target annotation with a regular expression that captures attacker-controlled text without requiring a path separator (for example path /api(.*) with rewrite target /$1), the generated RewriteTarget middleware can turn an initially safe request path into a dot-segment traversal path after the router has already been selected.

Traefik’s Kubernetes Ingress NGINX provider creates an internal RewriteTarget middleware for the nginx.ingress.kubernetes.io/rewrite-target annotation. When an Ingress path captures attacker-controlled text without requiring a path separator, the middleware can turn an initially safe path into a dot-segment traversal path after Traefik has already selected the router.

For example, with Ingress path /api(.*) and rewrite target /$1, an unauthenticated request to /api../admin follows this flow:

  1. The default entry-point path sanitizer leaves /api../admin unchanged because api.. is one ordinary segment.
  2. The public router’s PathRegexp("(?i)^/api(.*)") rule matches.
  3. RewriteTarget captures ../admin and creates /../admin.
  4. The middleware forwards /../admin without checking whether path normalization changes it.
  5. A backend that normalizes paths resolves /../admin to /admin.
  6. The request reaches content intended to be reachable only through a separate /admin router with BasicAuth, DigestAuth, or ForwardAuth.

This is an unpatched sibling of GHSA-cxjq-mrr5-89rv, which added post-replacement normalization validation to ReplacePathRegex. The separate ingress-nginx RewriteTarget implementation did not receive the same validation. The bypass remains exploitable in the patched Traefik v3.7.7 release.

References

  • github.com/advisories/GHSA-8rxv-jg7p-wvg3
  • github.com/traefik/traefik/commit/759515bec1b9f628b21ea8968ef63da853be5e29
  • github.com/traefik/traefik/security/advisories/GHSA-8rxv-jg7p-wvg3
  • nvd.nist.gov/vuln/detail/CVE-2026-67309
  • www.vulncheck.com/advisories/traefik-path-traversal-via-rewritetarget-authentication-bypass

Code Behaviors & Features

Detect and mitigate CVE-2026-67309 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.7.0 before 3.7.8

Fixed versions

  • 3.7.8

Solution

Upgrade to version 3.7.8 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-288: Authentication Bypass Using an Alternate Path or Channel

Source file

go/github.com/traefik/traefik/v3/CVE-2026-67309.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 15 Sep 2026 00:19:16 +0000.