Loading advisory.
Loading advisory.
Traefik: A timing side-channel vulnerability allows for valid username enumeration via BasicAuth middleware
There is a timing side-channel vulnerability in Traefik's BasicAuth middleware that allows an attacker to enumerate valid usernames through response-time differences.
Published 2026-04-24 20:36 UTC · Modified 2026-11-23 20:30 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/traefik/traefik/v3 | Go | >= 3.7.0-ea.1, < 3.7.0-rc.2 >= 3.0.0-beta1, < 3.6.14 < 3.6.14 | 3.7.0-rc.2, 3.6.14 | go get github.com/traefik/traefik/v3@v3.7.0-rc.2go get github.com/traefik/traefik/v3@v3.6.14 |
| github.com/traefik/traefik/v2 | Go | < 2.11.43 | 2.11.43 | go get github.com/traefik/traefik/v2@v2.11.43 |
| github.com/traefik/traefik | Go | <= 1.7.34 all versions | No patch yet | No command until a fix exists. |
There is a timing side-channel vulnerability in Traefik's BasicAuth middleware that allows an attacker to enumerate valid usernames through response-time differences.
The variable intended to hold a constant-time fallback secret always resolves to an empty string, causing the constant-time comparison to short-circuit in microseconds rather than performing a full bcrypt evaluation. This restores the original timing oracle and makes it possible to distinguish existing users from non-existing ones by measuring authentication response times.
https://github.com/traefik/traefik/releases/tag/v2.11.43
https://github.com/traefik/traefik/releases/tag/v3.6.14
https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
If there are any questions or comments about this advisory, please open an issue.
<details> <summary>Original Description</summary>
The patch for CVE-2026-32595 is a no-op. Line 49 of basic_auth.go has a
map key/value confusion that makes notFoundSecret always "". The
"constant time" fallback calls goauth.CheckSecret(password, ""), which
fast-fails in ~1us instead of running bcrypt (~60ms).
786f7192e, 2026-04-09)Black-box PoC against live traefik binary on port 28080:
| bucket | n | median | min | |------------------------------|-----|----------|----------| | existing user (wrong pw) | 240 | 62.85 ms | 57.54 ms | | nonexistent user (wrong pw) | 400 | 0.48 ms | 0.35 ms |
Median ratio: 130.4x. Classification: 8/8 correct.
Go in-tree test: goauth.CheckSecret direct ratio 12,746x.
basic_auth.go:49: users[slices.Collect(maps.Values(users))[0]] -- looks
up a hash as a username key, returns "".
basic_auth.go:119-120: calls goauth.CheckSecret(password, "").
go-http-auth/basic.go:87: empty string matches no prefix, falls to default
compareMD5HashAndPassword.
basic.go:107-109: bytes.SplitN("", "$", 4) returns length 1, function
returns instantly.
poc/exploit.py -- black-box Python timing oracle
poc/basic_auth_timing_regression_test.go -- Go in-tree test
poc/traefik.yml + poc/dynamic.yml -- traefik config
poc/live_http_poc_output_head.txt -- verbatim PoC output on HEAD
Koda Reef
</details>
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.004 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.004 | v2026.06.15 |
| 2026-11-30 | 0.004 | 0.004 | v2026.06.15 |