CVE-2025-32431 — Vulnerability in traefik/traefik/v3 — CVE Details
Traefik has a possible vulnerability with its path matchers
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.21%). Schedule for your next planned update.
Does your project use an affected github.com/traefik/traefik/v3 version?
Paste your go.sum to check it for CVE-2025-32431 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published April 21, 2025 (584 days ago).
- Last revised November 27, 2025 — 220 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/traefik/traefik/v3@v3.4.0-rc2
go get github.com/traefik/traefik/v3@v3.3.6
go get github.com/traefik/traefik/v2@v2.11.23
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (3).
| Package | Fixed In |
|---|---|
| github.com/traefik/traefik/v3 Go · Affected: 3.4.0-rc1 | 3.4.0-rc2 |
| github.com/traefik/traefik Go · Affected: All versions | Range-based data available |
| github.com/traefik/traefik/v3 Go · Affected: All versions | 3.3.6 |
| github.com/traefik/traefik/v2 Go · Affected: All versions | 2.11.23 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
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-48j7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32431ADVISORY
- https://github.com/traefik/traefik/pull/11684WEB
- https://github.com/traefik/traefikPACKAGE
- https://github.com/traefik/traefik/releases/tag/v2.11.24WEB
- https://github.com/traefik/traefik/releases/tag/v3.3.6WEB
- https://github.com/traefik/traefik/releases/tag/v3.4.0-rc2WEB
Frequently Asked Questions
- What is CVE-2025-32431?
- Traefik has a possible vulnerability with its path matchers. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-32431?
- CVE-2025-32431 affects github.com/traefik/traefik/v3, github.com/traefik/traefik and github.com/traefik/traefik/v2. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32431 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 68.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-65600CRITICAL
Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
- CVE-2026-71324HIGH
Traefik: Cross-user response poisoning via proxied CONNECT on Traefik's shared backend keep-alive pool
- CVE-2026-39858HIGH
Traefik: Pre-authentication decision bypass due to forwarded alias spoofing
- CVE-2026-35051HIGH
Traefik's ForwardAuth trustForwardHeader=false allows spoofed X-Forwarded-Prefix to bypass authentication
- CVE-2026-40912HIGH
Traefik has an StripPrefixRegex Middleware Authorization Bypass via Path/RawPath Desync
- CVE-2026-53622HIGH
Traefik: HTTP/3 mTLS bypass via exact SNI TLSOptions lookup for wildcard and mixed-case hosts
- CVE-2026-32305HIGH
Traefik has a Potential mTLS Bypass via Fragmented TLS ClientHello Causing Pre-SNI Sniff Fallback to Default Non-mTLS TLS Config
- CVE-2026-44774MEDIUM
Traefik: Gateway API TraefikService backend accepts rest@internal, allowing unauthorized exposure of the REST provider despite providers.rest.insecure=false