Fiber Utils UUIDv4 and UUID Silent Fallback to Predictable Values
gofiber utils
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gofiber/utils/v2 Go |
|
|
| github.com/gofiber/utils Go |
|
|
gofiber utils
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gofiber/utils/v2 Go |
|
|
| github.com/gofiber/utils Go |
|
|
Fiber Utils is a collection of common functions created for Fiber. In versions 2.0.0-rc.3 and below, when the system's cryptographic random number generator (crypto/rand) fails, both functions silently fall back to returning predictable UUID values, including the zero UUID "00000000-0000-0000-0000-000000000000". The vulnerability occurs through two related but distinct failure paths, both ultimately caused by crypto/rand.Read() failures, compromising the security of all Fiber applications using these functions for security-critical operations. This issue is fixed in version 2.0.0-rc.4.
From the CVE record · GitHub_M
When crypto/rand fails, gofiber utils functions can silently return predictable UUIDs, including the zero UUID. This can compromise applications that use those UUIDs for security-critical operations. The input does not specify attacker access, authentication, or user-interaction requirements.
Check applications using Go github.com/gofiber/utils/v2 before 2.0.0-rc.4 or github.com/gofiber/utils before 1.2.0.