V2: Duplicate Advisory: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-cxjq-mrr5-89rv. This link is maintained to preserve external references. ## Original 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.
AI Analysis
Technical Summary
The vulnerability in Traefik's ReplacePathRegex middleware arises from insufficient validation of replaced paths when using regex patterns that capture user-controlled segments without mandatory path separators. An attacker can craft requests that produce un-normalized paths (e.g., '/../admin') which backend systems normalize to protected routes, effectively bypassing authentication middleware. This affects Traefik versions <=2.11.51, >=3.6.0 <=3.6.22, and >=3.7.0 <=3.7.6. The flaw is addressed in versions 2.11.52, 3.6.23, and 3.7.7.
Potential Impact
An unauthenticated remote attacker can bypass authentication controls by exploiting path traversal in the ReplacePathRegex middleware, potentially gaining unauthorized access to protected backend routes. This can lead to unauthorized access to sensitive resources or administrative interfaces depending on backend configuration.
Mitigation Recommendations
Upgrade Traefik to version 2.11.52, 3.6.23, or 3.7.7 or later where this vulnerability is fixed. Until patched, avoid using ReplacePathRegex middleware configurations that capture user-controlled path segments without mandatory path separators. Patch status is confirmed by the vendor advisory.
V2: Duplicate Advisory: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
Description
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-cxjq-mrr5-89rv. This link is maintained to preserve external references. ## Original 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.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Traefik's ReplacePathRegex middleware arises from insufficient validation of replaced paths when using regex patterns that capture user-controlled segments without mandatory path separators. An attacker can craft requests that produce un-normalized paths (e.g., '/../admin') which backend systems normalize to protected routes, effectively bypassing authentication middleware. This affects Traefik versions <=2.11.51, >=3.6.0 <=3.6.22, and >=3.7.0 <=3.7.6. The flaw is addressed in versions 2.11.52, 3.6.23, and 3.7.7.
Potential Impact
An unauthenticated remote attacker can bypass authentication controls by exploiting path traversal in the ReplacePathRegex middleware, potentially gaining unauthorized access to protected backend routes. This can lead to unauthorized access to sensitive resources or administrative interfaces depending on backend configuration.
Mitigation Recommendations
Upgrade Traefik to version 2.11.52, 3.6.23, or 3.7.7 or later where this vulnerability is fixed. Until patched, avoid using ReplacePathRegex middleware configurations that capture user-controlled path segments without mandatory path separators. Patch status is confirmed by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-rhg6-2vjh-j5qc
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a74cf62bf8831d53918f58f
Added to database: 08/06/2026, 18:16:02 UTC
Last enriched: 08/06/2026, 18:18:03 UTC
Last updated: 08/07/2026, 03:40:59 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.