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 5.3EPSS 0.41000000000000003%Risk 0.55
View source- Published
- 2026-07-22 12:18:20
- Affected versions
- <=2.11.51, >=3.6.0, <=3.6.22, >=3.7.0, <=3.7.6
- Type
- Critical software
- Last modified
- 2026-08-06 15:42:22
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N