Vulnerability · Published Apr 21, 2025 · Assigned by GitHub_M
CVE-2025-32431Traefik has a possible vulnerability with the path matchers
High 8.8
In plain English
A high-severity path traversal in traefik from traefik. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/traefik/traefik | no fix listed | GO-2025-3634 |
| Go | github.com/traefik/traefik | no fix listed | GHSA-6p68-w45g-48j7 |
| Go | github.com/traefik/traefik/v2 | 2.11.23 | GO-2025-3634 |
| Go | github.com/traefik/traefik/v2 | 2.11.23 | GHSA-6p68-w45g-48j7 |
| Go | github.com/traefik/traefik/v3 | 3.4.0-rc2 | GHSA-6p68-w45g-48j7 |
| Go | github.com/traefik/traefik/v3 | 3.3.6 | GHSA-6p68-w45g-48j7 |
| Go | github.com/traefik/traefik/v3 | 3.3.6, 3.4.0-rc2 | GO-2025-3634 |
Affected products (as reported)
Weakness: CWE-22 · Vector: 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
References
- https://github.com/traefik/traefik/security/advisories/GHSA-6p68-w45g-48j7 x_refsource_CONFIRM
- https://github.com/traefik/traefik/pull/11684 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v2.11.24 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v3.3.6 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v3.4.0-rc2 x_refsource_MISC