# CVE-2026-32595: Traefik: BasicAuth Middleware Timing Attack Allows Username Enumeration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-208
- **Aliases:** GHSA-g3hg-j4jv-cwfr, GO-2026-4792
- **Published:** 2026-03-20T10:08:41.636Z
- **Modified:** 2026-06-17T10:36:04.243Z

## Who should check

- Projects that depend on Go package github.com/traefik/traefik (\<= 1.7.34)
- Projects that depend on Go package github.com/traefik/traefik/v2 (\< 2.11.41)
- Projects that depend on Go package github.com/traefik/traefik/v3 (\< 3.6.11)
- Anyone running traefik \< 2.11.41; \>= 3.0.0-beta1, \< 3.6.11; \>= 3.7.0-ea.1, \< 3.7.0-ea.2

## Description

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.

## Affected and fixed versions

- Go `github.com/traefik/traefik`: affected \<= 1.7.34; fixed no fix listed yet (osv)
- Go `github.com/traefik/traefik/v2`: affected \< 2.11.41; fixed 2.11.41 (osv)
- Go `github.com/traefik/traefik/v3`: affected \< 3.6.11; fixed 3.6.11, 3.7.0-ea.2 (osv)
- traefik: \< 2.11.41; \>= 3.0.0-beta1, \< 3.6.11; \>= 3.7.0-ea.1, \< 3.7.0-ea.2 (cvelist)

## Mitigation

- Upgrade github.com/traefik/traefik/v2 to 2.11.41 or later.
- Upgrade github.com/traefik/traefik/v3 to one of 3.6.11, 3.7.0-ea.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32595. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32595.md
Affected: github.com/traefik/traefik <= 1.7.34; github.com/traefik/traefik/v2 < 2.11.41; github.com/traefik/traefik/v3 < 3.6.11
Fixed in: 2.11.41, 3.6.11, 3.7.0-ea.2

Steps:
1. Search this machine and project for github.com/traefik/traefik (Go), github.com/traefik/traefik/v2 (Go), github.com/traefik/traefik/v3 (Go), traefik: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-32595 being exploited?

There is no confirmed exploitation: CVE-2026-32595 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32595?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-32595?

github.com/traefik/traefik \<= 1.7.34; github.com/traefik/traefik/v2 \< 2.11.41; github.com/traefik/traefik/v3 \< 3.6.11.

### Is there a fix for CVE-2026-32595?

Yes. Fixed in 2.11.41, 3.6.11, 3.7.0-ea.2. Upgrade github.com/traefik/traefik/v2 to 2.11.41 or later. Upgrade github.com/traefik/traefik/v3 to one of 3.6.11, 3.7.0-ea.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-32595?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/traefik/traefik/security/advisories/GHSA-g3hg-j4jv-cwfr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-32595>
- other: <https://github.com/traefik/traefik/releases/tag/v2.11.41>
- other: <https://github.com/traefik/traefik/releases/tag/v3.6.11>
- other: <https://github.com/traefik/traefik/releases/tag/v3.7.0-ea.2>
- other: <https://github.com/traefik/traefik>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32595>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g3hg-j4jv-cwfr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4792> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32595> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32595>
