The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-66565

CVE-2025-66565: Gofiber Utils Information Disclosure Flaw

CVE-2025-66565 is an information disclosure vulnerability in Gofiber Utils that causes predictable UUID generation when crypto/rand fails. This article covers technical details, affected versions, impact, and mitigation.

Published: March 18, 2026

CVE-2025-66565 Overview

CVE-2025-66565 is a critical Insecure Random Number Generation vulnerability affecting Gofiber Utils, a collection of common functions created for the Fiber web framework. In versions 2.0.0-rc.3 and below, when the system's cryptographic random number generator (crypto/rand) fails, both UUID generation functions silently fall back to returning predictable UUID values, including the zero UUID "00000000-0000-0000-0000-000000000000". This vulnerability compromises the security of all Fiber applications using these functions for security-critical operations such as session tokens, CSRF tokens, or unique identifiers.

Critical Impact

Applications using affected versions may generate predictable or zero UUIDs when the cryptographic random number generator fails, potentially allowing attackers to bypass authentication, predict session tokens, or compromise other security-critical operations that rely on UUID uniqueness.

Affected Products

  • Gofiber Utils versions prior to 2.0.0-rc.3
  • Gofiber Utils 2.0.0-beta1 through 2.0.0-beta14
  • Gofiber Utils 2.0.0-rc.1, 2.0.0-rc.2, and 2.0.0-rc.3

Discovery Timeline

  • December 9, 2025 - CVE-2025-66565 published to NVD
  • December 11, 2025 - Last updated in NVD database

Technical Details for CVE-2025-66565

Vulnerability Analysis

The vulnerability occurs through two related but distinct failure paths, both ultimately caused by crypto/rand.Read() failures. When the UUID generator's setup function encounters an error reading from the cryptographic random source, the vulnerable code silently returns without properly seeding the UUID counter. This results in the counter remaining at zero, causing subsequent UUID generation calls to return the predictable zero UUID value.

The security implications are severe for applications using these UUID functions for security-critical operations. Session identifiers, CSRF tokens, API keys, and other security-sensitive values generated during a crypto/rand failure would all be predictable, enabling attackers to forge sessions or bypass security controls.

Root Cause

The root cause is improper error handling (CWE-252: Unchecked Return Value) in the UUID seeding mechanism. When crypto/rand.Read() fails to properly seed the UUID generator, the code simply returns without raising an error or alerting the application. Additionally, if the uuidCounter is found to be zero (indicating failed initialization), the function returns a hardcoded zero UUID instead of failing safely. This silent failure pattern masks critical security issues from application developers.

Attack Vector

This vulnerability is exploitable over the network without authentication or user interaction. An attacker could exploit this vulnerability by:

  1. Identifying applications using affected Gofiber Utils versions for UUID generation
  2. Triggering conditions that cause crypto/rand failures (e.g., entropy starvation, resource exhaustion)
  3. Predicting or using the zero UUID to bypass security mechanisms
  4. Leveraging predictable UUIDs to hijack sessions, forge tokens, or access protected resources

The following patch demonstrates how the vulnerability was addressed by replacing silent failures with explicit panics:

go
 	// Setup seed & counter once
 	uuidSetup.Do(func() {
 		if _, err := rand.Read(uuidSeed[:]); err != nil {
-			return
+			panic(fmt.Sprintf("utils: failed to seed UUID generator: %v", err))
 		}
 		uuidCounter = binary.LittleEndian.Uint64(uuidSeed[:8])
 	})
 	if atomic.LoadUint64(&uuidCounter) <= 0 {
-		return "00000000-0000-0000-0000-000000000000"
+		panic("utils: UUID generator not properly seeded")
 	}
 	// first 8 bytes differ, taking a slice of the first 16 bytes
 	x := atomic.AddUint64(&uuidCounter, 1)

Source: GitHub Commit 6c6cf04

Detection Methods for CVE-2025-66565

Indicators of Compromise

  • Presence of zero UUID values (00000000-0000-0000-0000-000000000000) in session tokens, CSRF tokens, or other security-critical identifiers
  • Multiple requests or sessions sharing identical UUID values
  • Logs indicating crypto/rand read failures or entropy-related errors
  • Unusual patterns of successful authentication with predictable token values

Detection Strategies

  • Audit application logs for zero UUID generation or crypto/rand failure messages
  • Implement monitoring for session token collision detection across the application
  • Use dependency scanning tools to identify affected Gofiber Utils versions in your Go modules
  • Review go.mod files for github.com/gofiber/utils dependencies below version 2.0.0-rc.4

Monitoring Recommendations

  • Configure alerts for entropy pool depletion on application servers
  • Monitor for abnormal patterns of identical session or token values across different users
  • Implement runtime detection for predictable UUID patterns in security-critical contexts
  • Use SentinelOne Singularity to monitor for exploitation attempts targeting cryptographic weaknesses

How to Mitigate CVE-2025-66565

Immediate Actions Required

  • Upgrade Gofiber Utils to version 2.0.0-rc.4 or later immediately
  • Audit existing session tokens, CSRF tokens, and other UUID-based security values for predictability
  • Invalidate and regenerate all active sessions after upgrading to ensure no compromised tokens remain
  • Review application logs for evidence of zero UUID generation during the vulnerable period

Patch Information

The vulnerability has been patched in Gofiber Utils version 2.0.0-rc.4. The fix replaces silent failure behavior with explicit panics when the UUID generator cannot be properly seeded, ensuring applications fail safely rather than operating with predictable values. Review the GitHub Security Advisory GHSA-m98w-cqp3-qcqr for complete details.

Workarounds

  • If immediate upgrade is not possible, implement additional validation to reject zero or predictable UUID values in security-critical operations
  • Add application-level checks to detect and reject the zero UUID pattern before use
  • Consider implementing fallback cryptographic random sources at the application level
  • Monitor system entropy levels and ensure adequate randomness sources are available
bash
# Update Gofiber Utils to the patched version
go get github.com/gofiber/utils/v2@v2.0.0-rc.4

# Verify the updated version
go list -m github.com/gofiber/utils/v2

# Run go mod tidy to clean up dependencies
go mod tidy

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGofiber

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-252
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-m98w-cqp3-qcqr
  • Related CVEs
  • CVE-2026-25899: Gofiber Fiber DOS Vulnerability

  • CVE-2024-38513: Gofiber Fiber Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English