Skip to content

CVE-2025-66630 Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure

CriticalCVSS 9.2 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Fiber is an Express inspired web framework written in Go. Before 2.52.11, on Go versions prior to 1.24, the underlying crypto/rand implementation can return an error if secure randomness cannot be obtained. Because no error is returned by the Fiber v2 UUID functions, application code may unknowingly rely on predictable, repeated, or low-entropy identifiers in security-critical pathways. This is especially impactful because many Fiber v2 middleware components (session middleware, CSRF, rate limiting, request-ID generation, etc.) default to using utils.UUIDv4(). This vulnerability is fixed in 2.52.11.

Upgrade path

2 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
gofiber github.com/gofiber/fiber(Go) < 2.52.11; All versions 2.52.11 Partially fixed
gofiber github.com/gofiber/fiber < 2.52.11; = < 2.52.11 2.52.11 Fixed

Affected products

ProductAffected versionsFixed in
gofiber github.com/gofiber/fiber(Go) < 2.52.11 2.52.11
gofiber github.com/gofiber/fiber(Go) All versions No fix listed
gofiber github.com/gofiber/fiber = < 2.52.11 No fix listed
gofiber github.com/gofiber/fiber < 2.52.11 2.52.11

References