Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/traefik/traefik
  4. ›
  5. CVE-2026-32595

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

March 20, 2026

There is a potential vulnerability in Traefik’s 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.

A timing attack vulnerability exists in Traefik’s BasicAuth middleware that allows unauthenticated attackers to enumerate valid usernames. When a username exists, bcrypt password verification takes ~166ms; when it doesn’t exist, the response returns immediately in ~0.6ms. This ~298x timing difference enables reliable username enumeration.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-32595 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.7.34

Solution

Unfortunately, there is no solution available yet.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

go/github.com/traefik/traefik/CVE-2026-32595.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 17 May 2026 12:24:36 +0000.