Descrizione
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.43, 3.6.14, and 3.7.0-rc.2, there is a high severity authentication bypass vulnerability in Traefik's StripPrefixRegex middleware when used in combination with ForwardAuth, BasicAuth, or DigestAuth. The middleware matches the regex against the decoded URL path but uses the resulting byte length to slice the percent-encoded raw path. When a dot (or multiple dots) appears in the prefix portion of the URL, the raw path after stripping becomes a dot-segment (e.g. /./admin/secret). ForwardAuth receives this dot-segment path in X-Forwarded-Uri, which does not match the protected path patterns and therefore allows the request through. The backend then normalizes the dot-segment to the real path per RFC 3986 and serves the protected content An unauthenticated attacker can exploit this against any backend that performs dot-segment normalization. This issue has been patched in versions 2.11.43, 3.6.14, and 3.7.0-rc.2.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.2.
Versioni da aggiornare
- Traefik Traefik: vulnerabili le versioni precedenti alla
2.11.43→ aggiornare alla2.11.43o successiva. - Traefik Traefik: vulnerabili le versioni dalla
3.0.0precedenti alla3.6.14→ aggiornare alla3.6.14o successiva. - Traefik Traefik: vulnerabile la versione
3.7.0 ea1→ installare l'ultima release supportata dal vendor. - Traefik Traefik: vulnerabile la versione
3.7.0 ea2→ installare l'ultima release supportata dal vendor. - Traefik Traefik: vulnerabile la versione
3.7.0 ea3→ installare l'ultima release supportata dal vendor. - Traefik Traefik: vulnerabile la versione
3.7.0 rc1→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Note di rilascio: github.com/traefik/traefik/releases/tag/v2.11.43
- Note di rilascio: github.com/traefik/traefik/releases/tag/v3.6.14
- Note di rilascio: github.com/traefik/traefik/releases/tag/v3.7.0-…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Traefik | Traefik | < 2.11.43 | 2.11.43 |
| Traefik | Traefik | ≥ 3.0.0 < 3.6.14 | 3.6.14 |
| Traefik | Traefik | 3.7.0 ea1 | — |
| Traefik | Traefik | 3.7.0 ea2 | — |
| Traefik | Traefik | 3.7.0 ea3 | — |
| Traefik | Traefik | 3.7.0 rc1 | — |
Riferimenti
- Exploit pubblicohttps://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847
- Note di rilasciohttps://github.com/traefik/traefik/releases/tag/v2.11.43
- Note di rilasciohttps://github.com/traefik/traefik/releases/tag/v3.6.14
- Note di rilasciohttps://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
- Riferimentohttps://access.redhat.com/errata/RHSA-2026:21772
- Riferimentohttps://access.redhat.com/security/cve/CVE-2026-40912
- Riferimentohttps://bugzilla.redhat.com/show_bug.cgi?id=2464229
- Riferimentohttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json