Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

V2: Duplicate Advisory: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware

0
High
Published: 07/22/2026 (07/22/2026, 12:32:18 UTC)
Source: GCVE Database
Product: github.com/traefik/traefik/v2

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
Scope
X
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

Goghsa
github.com/traefik/traefik/v2
Affected versions
<=2.11.51

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 18:18:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses