Traefik StripPrefix Route-Level Auth Bypass via Path Normalization
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 3.7.3, 3.6.19, 2.11.48
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.48, 3.6.19, and 3.7.3, there is a high severity vulnerability in Traefik's StripPrefix middleware that allows an unauthenticated attacker to bypass route-level authentication and authorization. When a public router matches on a PathPrefix rule and applies the StripPrefix middleware, a request path containing .. or its percent-encoded form %2e%2e can match the public route at routing time and then, after the prefix is stripped and the path is normalized, resolve to a path served by a separate, authenticated router. As a result, an attacker can reach protected backend paths — such as admin or internal configuration endpoints — without satisfying the authentication middleware attached to the protected router. This vulnerability is fixed in 2.11.48, 3.6.19, and 3.7.3.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- traefik traefik
From 3.7.0-ea.1 · fixed in 3.7.3; From 3.0.0-beta1 · fixed in 3.6.19; fixed in 2.11.48
- github.com/traefik/traefik/v2Go
fixed in 2.11.48
- github.com/traefik/traefik/v3Go
fixed in 3.6.19
- github.com/traefik/traefik/v3Go
From 3.7.0-ea.1 · fixed in 3.7.3
- github.com/traefik/traefikGo
All versions
- github.com/traefik/traefik/v3Go
fixed in 3.6.19; From 3.7.0-ea.1 · fixed in 3.7.3