8.8high
Traefik has a possible vulnerability with the path matchers
- Severity
- 8.8high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.96% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6p68-w45g-48j7GO-2025-3634
Description
Traefik (pronounced traffic) is an HTTP reverse proxy and load balancer. In versions prior to 2.11.24, 3.3.6, and 3.4.0-rc2. There is a potential vulnerability in Traefik managing the requests using a PathPrefix, Path or PathRegex matcher. When Traefik is configured to route the requests to a backend using a matcher based on the path, if the URL contains a /../ in its path, it’s possible to target a backend, exposed using another router, by-passing the middlewares chain. This issue has been patched in versions 2.11.24, 3.3.6, and 3.4.0-rc2. A workaround involves adding a `PathRegexp` rule to the matcher to prevent matching a route with a `/../` in the path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| traefik traefik | < 2.11.24, < 3.3.6, >= 3.4.0-rc1, < 3.4.0-rc2, before 2.11.24, from 3.0.0 before 3.3.6, 3.4.0 | CVE List, NVD |
| github.com/traefik/traefik (Go) | up to 1.7.34, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik/v2 (Go) | before 2.11.23 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik/v3 (Go) | before 3.3.6, from 3.4.0-rc1 before 3.4.0-rc2 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
Traefik (pronounced traffic) is an HTTP reverse proxy and load balancer. In versions prior to 2.11.24, 3.3.6, and 3.4.0-rc2. There is a potential vulnerability in Traefik managing the requests using a PathPrefix, Path or PathRegex matcher. When Traefik is configured to route the requests to a backend using a matcher based on the path, if the URL contains a /../ in its path, it’s possible to target a backend, exposed using another router, by-passing the middlewares chain. This issue has been patched in versions 2.11.24, 3.3.6, and 3.4.0-rc2. A workaround involves adding a `PathRegexp` rule to the matcher to prevent matching a route with a `/../` in the path.
GitHub Advisory Database
Impact
There is a potential vulnerability in Traefik managing the requests using a PathPrefix, Path or PathRegex matcher.
When Traefik is configured to route the requests to a backend using a matcher based on the path, if the URL contains a /../ in its path, it’s possible to target a backend, exposed using another router, by-passing the middlewares chain.
Example
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: my-service
spec:
routes:
- match: PathPrefix(‘/service’)
kind: Rule
services:
- name: service-a
port: 8080
middlewares:
- name: my-middleware-a
- match: PathPrefix(‘/service/sub-path’)
kind: Rule
services:
- name: service-a
port: 8080
In such a case, the request http://mydomain.example.com/service/sub-path/../other-path will reach the backend my-service-a without operating the middleware my-middleware-a unless the computed path is http://mydomain.example.com/service/other-path and should be computes by the first router (operating my-middleware-a).
Patches
- https://github.com/traefik/traefik/releases/tag/v2.11.24
- https://github.com/traefik/traefik/releases/tag/v3.3.6
- https://github.com/traefik/traefik/releases/tag/v3.4.0-rc2
Workaround
Add a PathRegexp rule to the matcher to prevent matching a route with a /../ in the path.
Example:
match: PathPrefix(`/service`) && !PathRegexp(`(?:(/\.\./)+.*)`)
For more information
If you have any questions or comments about this advisory, please open an issue.
Go Vulnerability Database
Traefik has a possible vulnerability with the path matchers in github.com/traefik/traefik
NVD (es)
Traefik (pronunciado "traffic") es un proxy inverso HTTP y balanceador de carga. En versiones anteriores a 2.11.24, 3.3.6 y 3.4.0-rc2, existe una vulnerabilidad potencial en Traefik al gestionar las solicitudes mediante un comparador PathPrefix, Path o PathRegex. Cuando Traefik se configura para enrutar las solicitudes a un backend mediante un comparador basado en la ruta, si la URL contiene un /../ en su ruta, es posible dirigirse a un backend expuesto mediante otro enrutador, omitiendo la cadena de middleware. Este problema se ha corregido en las versiones 2.11.24, 3.3.6 y 3.4.0-rc2. Un workaround consiste en añadir una regla `PathRegexp` al comparador para evitar que coincida con una ruta que contenga un `/../` en la ruta.
References
| https://github.com/traefik/traefik/security/advisories/GHSA-6p68-w45g-48j7 | advisory, patch, vendor-advisory, web | |
| https://github.com/traefik/traefik/pull/11684 | patch, web | |
| https://github.com/traefik/traefik/releases/tag/v2.11.24 | release-notes, web | |
| https://github.com/traefik/traefik/releases/tag/v3.3.6 | release-notes, web | |
| https://github.com/traefik/traefik/releases/tag/v3.4.0-rc2 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-32431 | advisory | |
| https://github.com/traefik/traefik | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-32431 changed 2025-04-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6p68-w45g-48j7 changed 2025-11-27 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3634 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-32431 changed 2026-06-17 | Public domain |