Description
Traefik versions <= v2.11.51, >= v3.6.0 <= v3.6.22, and >= v3.7.0 <= v3.7.6 contain an authentication bypass via path traversal in the ReplacePathRegex middleware. When ReplacePathRegex is configured with a regex that captures user-controlled path segments without a mandatory path separator (e.g. regex "^/api(.*)", replacement "/$1"), the middleware forwards the replaced path to the backend without validating that it matches its normalized form. An unauthenticated remote attacker can send a crafted request (e.g. GET /api../admin) that produces an un-normalized path such as /../admin, which a backend that normalizes paths resolves to a protected route, bypassing authentication middleware. Fixed in v2.11.52, v3.6.23, and v3.7.7.
Published: 2026-07-22
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Traefik includes an authentication bypass in the ReplacePathRegex middleware. When the middleware receives a user‑controlled URL that matches a regular expression lacking a mandatory path separator—such as ^/api(.*)—the captured group is substituted into the backend URL without normalizing the path. A crafted request like GET /api../admin creates the string /../, which a backend that normalizes paths interprets as a protected admin route, thus allowing an unauthenticated attacker to reach a resource behind an authentication middleware. The flaw is based on unvalidated path traversal (CWE‑22) and can compromise confidentiality of resources protected by authentication.

Affected Systems

Traefik versions up to v2.11.51, 3.6.0 through 3.6.22, and 3.7.0 through 3.7.6 are affected. Any deployment using these releases and employing the ReplacePathRegex middleware with a regex that captures user input without enforcing a path separator is vulnerable. All other Traefik versions are considered safe.

Risk and Exploitability

Security analysts rate the vulnerability with a CVSS score of 7.8, indicating high severity. The EPSS score of less than 1% suggests that while exploitation incidents are not overwhelmingly common, they are plausible, especially for publicly exposed Traefik services. The vulnerability is not listed in the CISA KEV catalog at present, reducing but not eliminating the risk of targeted exploitation. Attackers can carry out the exploit remotely by sending a crafted HTTP request to the vulnerable service; the bypass does not require authentication or privileged access. Once the request is processed, the unauthenticated attacker can access protected backend routes, potentially exposing sensitive data or system controls.

Generated by OpenCVE AI on August 3, 2026 at 23:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Traefik to version v2.11.52, v3.6.23, or v3.7.7, whichever corresponds to your installation, to apply the vendor patch that validates the normalized path before forwarding.
  • If an upgrade cannot be performed immediately, reconfigure any ReplacePathRegex middleware to enforce a leading slash and prohibit path traversal sequences in the captured group—for example, use a regex such as ^/api/(.*) and validate that the replacement contains no ".." segments.
  • Ensure that backend services reject or normalize un‑normalized URLs so that any attack path will be resolved to the intended protected route only after authentication. Alternatively, disable ReplacePathRegex for routes that require strict authentication.

Generated by OpenCVE AI on August 3, 2026 at 23:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cxjq-mrr5-89rv Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
History

Sat, 25 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Critical


Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 22 Jul 2026 11:45:00 +0000

Type Values Removed Values Added
Description Traefik versions <= v2.11.51, >= v3.6.0 <= v3.6.22, and >= v3.7.0 <= v3.7.6 contain an authentication bypass via path traversal in the ReplacePathRegex middleware. When ReplacePathRegex is configured with a regex that captures user-controlled path segments without a mandatory path separator (e.g. regex "^/api(.*)", replacement "/$1"), the middleware forwards the replaced path to the backend without validating that it matches its normalized form. An unauthenticated remote attacker can send a crafted request (e.g. GET /api../admin) that produces an un-normalized path such as /../admin, which a backend that normalizes paths resolves to a protected route, bypassing authentication middleware. Fixed in v2.11.52, v3.6.23, and v3.7.7.
Title Traefik before v2.11.52 Authentication Bypass via ReplacePathRegex
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-07-23T19:08:19.233Z

Reserved: 2026-07-22T10:48:36.000Z

Link: CVE-2026-65600

cve-icon Vulnrichment

Updated: 2026-07-23T19:08:15.372Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-22T12:18:20.297

Modified: 2026-08-06T15:42:22.037

Link: CVE-2026-65600

cve-icon Redhat

Severity : Critical

Publid Date: 2026-07-22T11:21:46Z

Links: CVE-2026-65600 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T00:00:09Z

Weaknesses
  • CWE-22

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