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.
Published: 2026-03-20
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: User Enumeration
Action: Immediate Patch
AI Analysis

Impact

The BasicAuth middleware in Traefik creates a significant timing difference between valid and invalid usernames, allowing an attacker to identify existing accounts without any credentials. This side‑channel vulnerability is classified as CWE-208 and can provide attackers with a list of valid usernames to target for further credential‑guessing or phishing attempts, thereby compromising the confidentiality of the system’s user data.

Affected Systems

Traefik releases 2.11.40 and earlier, 3.0.0‑beta1 through 3.6.11, and the 3.7.0‑ea.1 early access build are affected. The product is distributed by Traefik Ltd and these particular version ranges contain the flaw.

Risk and Exploitability

With a CVSS score of 6.3 the vulnerability is of moderate severity and an EPSS score below 1 % indicates a low probability of exploitation. The flaw is not listed in the CISA KEV catalog, suggesting no widespread attacks are known. An unauthenticated attacker can trigger repeated HTTP requests to the BasicAuth‑protected route; the noticeable 298‑fold time difference enables reliable enumeration of valid usernames without needing privileged access or additional conditions.

Generated by OpenCVE AI on March 24, 2026 at 16:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Traefik to a patched release such as 2.11.41, 3.6.11, or 3.7.0‑ea.2 or newer.
  • If an immediate upgrade is not possible, limit public access to the routes protected by BasicAuth.
  • Apply rate limiting or introduce artificial delays on authentication endpoints to hinder timing observations.
  • Monitor authentication logs for patterns indicating enumeration activity.

Generated by OpenCVE AI on March 24, 2026 at 16:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g3hg-j4jv-cwfr Traefik Affected by BasicAuth Middleware Timing Attack Allows Username Enumeration
History

Tue, 24 Mar 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:*
cpe:2.3:a:traefik:traefik:3.7.0:ea1:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Mon, 23 Mar 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate


Fri, 20 Mar 2026 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Traefik
Traefik traefik
Vendors & Products Traefik
Traefik traefik

Fri, 20 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 20 Mar 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title Traefik: BasicAuth Middleware Timing Attack Allows Username Enumeration
Weaknesses CWE-208
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-20T15:38:35.378Z

Reserved: 2026-03-12T14:54:24.268Z

Link: CVE-2026-32595

cve-icon Vulnrichment

Updated: 2026-03-20T15:38:28.829Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-20T11:18:02.537

Modified: 2026-03-24T15:14:24.170

Link: CVE-2026-32595

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-03-20T10:08:41Z

Links: CVE-2026-32595 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T14:29:35Z

Weaknesses