1. Archivio CVE
  2. 2025
  3. CVE-2025-66565

CVE-2025-66565

9.8 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
gofiber utils <= 1.2.0 go
gofiber utils 2.0.0 beta1 go
gofiber utils 2.0.0 beta10 go
gofiber utils 2.0.0 beta11 go
gofiber utils 2.0.0 beta12 go
gofiber utils 2.0.0 beta13 go
gofiber utils 2.0.0 beta14 go
gofiber utils 2.0.0 beta2 go
gofiber utils 2.0.0 beta3 go
gofiber utils 2.0.0 beta4 go
gofiber utils 2.0.0 beta5 go
gofiber utils 2.0.0 beta6 go
gofiber utils 2.0.0 beta7 go
gofiber utils 2.0.0 beta8 go
gofiber utils 2.0.0 beta9 go
gofiber utils 2.0.0 rc1 go
gofiber utils 2.0.0 rc2 go
gofiber utils 2.0.0 rc3 go
gofiber utils 2.0.0 rc4 go

Tipo di vulnerabilità

CWE-252 Unchecked Return Value

The product does not check the return value from a method or function.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Integrità Stato imprevisto, Dipende dal contesto, Interruzione del servizio: arresto o riavvio
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Sviluppo Ensure that you account for all possible return values from the function.
Sviluppo When designing a function, make sure you return a value or throw an exception in case of an error.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 200 CVE di tipo CWE-252, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org