Traefik: BasicAuth Middleware Timing Attack Allows Username Enumeration
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/traefik/traefikGo | <= 1.7.34 | — |
github.com/traefik/traefik/v2Go | < 2.11.41 | 2.11.41 |
github.com/traefik/traefik/v3Go | < 3.6.11 | 3.6.11 |
github.com/traefik/traefik/v3Go | >= 3.7.0-ea.1, < 3.7.0-ea.2 | 3.7.0-ea.2 |
Affected products
9- osv-coords8 versionspkg:apk/chainguard/traefik-3.5pkg:apk/wolfi/traefik-3.5pkg:golang/github.com/traefik/traefikpkg:golang/github.com/traefik/traefik/v2pkg:golang/github.com/traefik/traefik/v3pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/traefik2&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/traefik&distro=openSUSE%20Tumbleweed
< 3.5.6-r6+ 7 more
- (no CPE)range: < 3.5.6-r6
- (no CPE)range: < 3.5.6-r6
- (no CPE)range: <= 1.7.34
- (no CPE)range: < 2.11.41
- (no CPE)range: < 3.6.11
- (no CPE)range: < 0.0.20260326T203309-150000.1.155.2
- (no CPE)range: < 2.11.42-1.1
- (no CPE)range: < 3.6.12-1.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-g3hg-j4jv-cwfrghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-32595ghsaADVISORY
- github.com/traefik/traefik/releases/tag/v2.11.41ghsax_refsource_MISCWEB
- github.com/traefik/traefik/releases/tag/v3.6.11ghsax_refsource_MISCWEB
- github.com/traefik/traefik/releases/tag/v3.7.0-ea.2ghsax_refsource_MISCWEB
- github.com/traefik/traefik/security/advisories/GHSA-g3hg-j4jv-cwfrghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.