Traefik: BasicAuth Middleware Timing Attack Allows Username Enumeration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-208.
Summary
Traefik is an HTTP reverse proxy and load balancer. Versions 2.11.40 and below, 3.0.0-beta1 through 3.6.11, and 3.7.0-ea.1 comtain BasicAuth middleware that allows username enumeration via a timing attack. When a submitted username exists, the middleware performs a bcrypt password comparison taking ~166ms. When the username does not exist, the response returns immediately in ~0.6ms. This ~298x timing difference is observable over the network and allows an unauthenticated attacker to reliably distinguish valid from invalid usernames. This issue is patched in versions 2.11.41, 3.6.11 and 3.7.0-ea.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| traefik | traefik | before 2.11.41; 3.0.0-beta1 to before 3.6.11; 3.7.0-ea.1 to before 3.7.0-ea.2 | 2.11.41, 3.6.11, 3.7.0-ea.2 | Patch available | CNA |
| — | github.com/traefik/traefik (Go) | up to 1.7.34 | — | No fix listed | GHSA-g3hg-j4jv-cwfr |
| — | github.com/traefik/traefik/v2 (Go) | before 2.11.41 | 2.11.41 | Patch available | GHSA-g3hg-j4jv-cwfr |
| — | github.com/traefik/traefik/v3 (Go) | before 3.6.11 | 3.6.11 | Patch available | GHSA-g3hg-j4jv-cwfr |
| — | github.com/traefik/traefik/v3 (Go) | 3.7.0-ea.1 to before 3.7.0-ea.2 | 3.7.0-ea.2 | Patch available | GHSA-g3hg-j4jv-cwfr |
- traefik Vendortraefik Affected before 2.11.41; 3.0.0-beta1 to before 3.6.11; 3.7.0-ea.1 to before 3.7.0-ea.2 Fixed in 2.11.41, 3.6.11, 3.7.0-ea.2 Patch available CNA
- github.com/traefik/traefik (Go) Vendor— Affected up to 1.7.34 Fixed in — No fix listed GHSA-g3hg-j4jv-cwfr
- github.com/traefik/traefik/v2 (Go) Vendor— Affected before 2.11.41 Fixed in 2.11.41 Patch available GHSA-g3hg-j4jv-cwfr
- github.com/traefik/traefik/v3 (Go) Vendor— Affected before 3.6.11 Fixed in 3.6.11 Patch available GHSA-g3hg-j4jv-cwfr
- github.com/traefik/traefik/v3 (Go) Vendor— Affected 3.7.0-ea.1 to before 3.7.0-ea.2 Fixed in 3.7.0-ea.2 Patch available GHSA-g3hg-j4jv-cwfr
Remediation
- Fix · CNA traefik (traefik) Fixed in 2.11.41, 3.6.11, 3.7.0-ea.2
- Fix · GHSA-g3hg-j4jv-cwfr github.com/traefik/traefik/v2 (Go) Fixed in 2.11.41 Advisory →
- Fix · GHSA-g3hg-j4jv-cwfr github.com/traefik/traefik/v3 (Go) Fixed in 3.6.11 Advisory →
- Fix · GHSA-g3hg-j4jv-cwfr github.com/traefik/traefik/v3 (Go) Fixed in 3.7.0-ea.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-32595
- 2026-10-03 Alias added: GHSA-g3hg-j4jv-cwfr
References
More Traefik vulnerabilities
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2023-25774 Uncontrolled Resource Consumption in Traefik CVSS 3.1HIGH 7.5
- TI-2025-40914 Traefik doesn't Prevent Path Normalization Bypass in Router + Middleware Rules CVSS 4.0MEDIUM 6.9
- TI-2022-07529 Authorization header displayed in the debug logs CVSS 3.1MEDIUM 6.5
- TI-2024-30459 HTTP client can remove the X-Forwarded headers in Traefik CVSS 3.1CRITICAL 9.8
- TI-2026-60261 Traefik v3.7.0 Authentication Bypass via from-to-www-redirect CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-32595 · CVE Program
- CVE-2026-32595 · NVD
- FIRST EPSS
- GHSA-g3hg-j4jv-cwfr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-32595 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences