Description
Fiber is an Express inspired web framework written in Go. Prior to 3.3.0, the default Authorizer function in the BasicAuth middleware in middleware/basicauth/config.go uses short-circuit evaluation that skips password hash comparison for non-existent usernames, enabling reliable remote username enumeration through response timing differences. This issue is fixed in version 3.3.0.
Published: 2026-07-08
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The BasicAuth middleware in the GoFiber framework performs a short‑circuit check that skips password hash comparison when a username is absent. This logic introduces a measurable timing difference between authentication attempts for valid and invalid usernames, enabling a remote attacker to enumerate existing accounts. The weakness is a timing oracle and is classified as CWE‑203. Because the vulnerability does not grant code execution or direct data disclosure, its impact is limited to the discovery of valid usernames, which can aid subsequent credential‑guessing or social‑The CVSS score of 5.3 indicates moderate risk, reflecting the enumeration capability without direct control over the host. The EPSS score of less than 1% signals the wild, yet enumeration can be carried out from a remote location by sending crafted HTTP requests latency. The vulnerability is not listed in the CISA KEV catalog, meaning no publicly documented active exploits are known at present.

Affected Systems

All applications built with the GoFiber framework prior to version 3.3.0 are affected. The default BasicAuth authorizer contains the vulnerable logic until the library is upgraded to v3 which point constant‑time checks are applied. The issue applies to all releases of the gofiber:fiber product before that milestone.

Risk and Exploitability

The CVSS score of 5.3 describes a moderate impact focused on confidentiality, as the flaw permits enumeration of valid usernames but not direct code execution or data exfiltration. The EPSS score of less than 1% indicates that such attacks are currently rare in the wild, and the vulnerability is not listed in the CISA KEV catalog, implying no known active exploitation. The attack vector is inferred to be remote, using HTTP requests to the BasicAuth endpoint over the network; a timing oracle can be exploited without authentication headers to deduce account existence by measuring response latency. The exploit timed requests and interpreting differences, making it relatively straightforward but still non‑trivial, as network noise can obscure timing variations. For organizations using GoFiber, the risk is a potential precursor to credential‑guessing attacks if valid usernames are obtained, so timely mitigation is advisable.

Generated by OpenCVE AI on July 26, 2026 at 17:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the GoFiber framework to version 3.3.0 or later, which replaces the short‑circuit logic with constant‑time username validation.
  • Disable or remove BasicAuth on publicly exposed endpoints until the framework can be updated, limiting the attack surface.
  • If an update is not immediately possible, replace the default BasicAuth middleware with a custom implementation that enforces constant‑time comparison for all usernames to eliminate the timing leak.

Generated by OpenCVE AI on July 26, 2026 at 17:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g5vh-55hw-rxm8 GoFiber Vulnerable to Username Enumeration via Timing Oracle in BasicAuth Default Authorizer
History

Thu, 09 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Gofiber
Gofiber fiber
Vendors & Products Gofiber
Gofiber fiber

Wed, 08 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Fiber is an Express inspired web framework written in Go. Prior to 3.3.0, the default Authorizer function in the BasicAuth middleware in middleware/basicauth/config.go uses short-circuit evaluation that skips password hash comparison for non-existent usernames, enabling reliable remote username enumeration through response timing differences. This issue is fixed in version 3.3.0.
Title Fiber: Username Enumeration via Timing Oracle in BasicAuth Default Authorizer
Weaknesses CWE-203
References
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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T14:33:29.004Z

Reserved: 2026-05-05T19:52:59.146Z

Link: CVE-2026-44332

cve-icon Vulnrichment

Updated: 2026-07-09T14:33:26.233Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T17:30:17Z

Weaknesses