CVE-2026-44332: Gofiber Fiber username enumeration in BasicAuth middleware

CVE-2026-44332 · Severity: medium · CVSS 5.3 · Published 2026-07-08

Fiber is a popular web framework for the Go programming language used to build high-performance web applications. A flaw in its built-in authentication component allows attackers to determine which usernames are valid on a system by measuring how long the server takes to respond to login attempts. This information can be used to conduct more targeted and effective password-guessing attacks or to discover sensitive account names.

Technologies: Fiber, github.com/gofiber/fiber/v3 (Go). Vendors: Fiber, Go.

Quick answers

Is CVE-2026-44332 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-44332 being exploited in the wild.
How severe is CVE-2026-44332?
Medium severity, with a CVSS score of 5.3, published 8 July 2026.
Which products and versions are affected?
Fiber < 3.3.0, <= 3.2.0; github.com/gofiber/fiber/v3 (Go) <= 3.2.0, SEMVER:introduced=0,fixed=3.3.0.
Is there a fix for CVE-2026-44332?
Yes. github.com/gofiber/fiber/v3 (Go): upgrade to 3.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-44332 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-44332?
Check whether you run Fiber or github.com/gofiber/fiber/v3 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/gofiber/fiber/v3 (Go): upgrade to 3.3.0 or later
    go get github.com/gofiber/fiber/v3@v3.3.0

Technical details

The default Authorizer function in Fiber's BasicAuth middleware (middleware/basicauth/config.go) utilizes short-circuit evaluation when verifying credentials. If a provided username does not exist in the configuration map, the function returns immediately without performing a password hash comparison. When using computationally expensive hashes like bcrypt, this creates a significant timing difference (approximately 100ms for valid users vs 100ns for invalid users). An attacker can exploit this timing oracle to reliably enumerate valid usernames via network requests. The vulnerability was addressed in version 3.3.0 by ensuring a dummy hash comparison is performed even when a username is not found.

Affected products

  • gofiber Fiber < 3.3.0

Identifiers

  • CVE-2026-44332
  • GHSA-g5vh-55hw-rxm8
  • GO-2026-5886

Timeline

  • 2026-04-29: other: Pull request to fix the timing oracle submitted
  • 2026-05-22: patched: Version 3.3.0 released
  • 2026-07-02: advisory: GitHub Security Advisory published
  • 2026-07-08: disclosed: CVE-2026-44332 published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.