CVE-2026-65600

Traefik before v2.11.52 Authentication Bypass via ReplacePathRegex

Published Jul 22, 2026 CVSS 4.0 · 7.8 High EPSS 1.0% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

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

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:23 PM
Reserved
Jul 22, 2026, 10:48 AM
Status
Analyzed
Published
Jul 22, 2026, 12:18 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Critical
Public date
Jul 22, 2026, 11:21 AM