CVE-2025-66630 Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/gofiber/fiber/security/advisories/GHSA-68rr-p4fp-j59v vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/gofiber/fiber/commit/eb874b6f6c5896b968d9b0ab2b56ac7052cb0ee1 patch
- github.com product
- https://github.com/gofiber/fiber/releases/tag/v2.52.11 product release-notes
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2438199 issue-tracking
- www.cve.org