Skip to main content

Fiber Utils CVE-2025-66565

CRITICAL
Unchecked Return Value (CWE-252)
2025-12-09 security-advisories@github.com
9.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    App runs on Go <1.24 with failing crypto/rand
  2. Delivery
    UUID()/UUIDv4() silently returns predictable/zero UUID
  3. Exploit
    App issues guessable session or CSRF token
  4. Execution
    Attacker predicts token value
  5. Impact
    Session hijack or token forgery

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
Exploitation Conditions

Exploitation requires ALL of the following: (1) the application must be compiled with Go prior to 1.24 - Go 1.24+ panics on crypto/rand failure and is NOT affected; (2) the OS cryptographic RNG (crypto/rand.Read) must actually fail at runtime, which is rare and typically only occurs in broken/sandboxed environments lacking /dev/urandom or entropy; and (3) the application must use gofiber/utils UUID() or UUIDv4() for a security-critical purpose such as session tokens, CSRF tokens, or reset identifiers. The decisive LIMITING factor is that an attacker cannot remotely or directly cause crypto/rand to fail, so despite the AV:N rating this is not attacker-triggerable on demand; affected versions are 2.0.0-rc.3 and below (v2 line) and <= 1.1.0 (v1 line).

Impact

This is a textbook case of a high CVSS score that overstates real-world risk. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L, score 9.3 Critical) implies trivial, unauthenticated, remote exploitation - but the GHSA advisory and commit diff reveal the trigger is a failure of the operating system's crypto/rand.Read(), which an attacker cannot remotely induce and which essentially never happens on a healthy system. The low-privilege signals conflict sharply with the actual precondition: AC:L is implausible because the vulnerable zero-UUID/predictable-fallback path only executes when the kernel CSPRNG fails. EPSS reinforces the lower real risk at 0.47% (39th percentile), consistent with a bug that is hard to trigger on demand. KEV status is absent (no confirmed active exploitation), and no public exploit was identified - the only 'source code evidence' provided is the vendor patch, not a weaponized POC. Crucially, per the vendor, Go 1.24+ already panics on crypto/rand failure, so only applications compiled against Go versions prior to 1.24 are affected, further narrowing exposure. Net assessment: legitimate defect worth patching (predictable security tokens would be catastrophic if the condition ever occurred), but it is a latent correctness/robustness flaw rather than an actively exploitable network vulnerability - prioritize as routine dependency hygiene, not emergency patching.

Exploit ScenarioDerived

On a host where crypto/rand.Read() fails (e.g., a minimal container or sandbox lacking proper entropy sources) running an app built with Go < 1.24, gofiber/utils UUID()/UUIDv4() silently returns the predictable zero UUID '00000000-0000-0000-0000-000000000000' instead of erroring. If the application uses these UUIDs for session identifiers, CSRF tokens, or password-reset links, an attacker who can observe or guess the predictable value could hijack sessions or forge tokens. No public exploit code exists, and the attacker cannot themselves force the underlying crypto/rand failure.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Fiber Utils (gofiber/utils) versions 2.0.0-rc.3 and below (and the v1 line through 1.1.0) can return predictable UUIDs-including the zero UUID '00000000-0000-0000-0000-000000000000'-when crypto/rand.Read fails, because the UUID() and UUIDv4() functions silently fall back instead of reporting an error. This affects applications compiled with Go prior to 1.24 that rely on these helpers for session tokens, CSRF tokens, or password-reset identifiers; Go 1.24+ panics on such failures and is not affected. No public exploit code has been identified and EPSS is 0.47%, and while the CVSS 4.0 score is 9.3, the independent assessment emphasizes that the risk is substantially lower because an attacker cannot force the RNG failure-it requires a broken or entropy-starved runtime environment.

RemediationAI

Upgrade to the vendor-released fixed versions: 2.0.0-rc.4 for github.com/gofiber/utils/v2, or 1.2.0 for github.com/gofiber/utils (v1). Applying the patch commit 6c6cf047032b9c8dff43d29f990b4b10e9b02d47 changes the silent fallbacks to panics, so callers will fail fast instead of silently emitting predictable UUIDs. As a compensating control, ensure applications are built with Go 1.24 or later, which panics on crypto/rand failures and thus eliminates the silent fallback behavior; the trade-off is that this requires a toolchain upgrade and may expose other latent crypto/rand failures as panics. If an upgrade is not immediately possible, avoid using UUID() and UUIDv4() for security-critical tokens and replace them with a vetted alternative that propagates errors from crypto/rand (e.g., using google/uuid directly with explicit error handling); this requires code changes and testing. Additionally, monitor logs for the zero UUID or repeated UUIDs to detect RNG failure conditions, and ensure the runtime environment has a reliable entropy source (e.g., /dev/urandom available) to prevent crypto/rand failures. Given that no public exploit exists and exploitation requires an attacker-inaccessible RNG failure, remediation should be prioritized based on the application's tolerance for predictable tokens and the reliability of its runtime entropy.

Affected Packages

go github.com/gofiber/utils fix: 1.2.0
go github.com/gofiber/utils/v2 fix: 2.0.0-rc.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a CWE-252 (Unchecked Return Value) issue in the Go module github.com/gofiber/utils (and the v2 module path github.com/gofiber/utils/v2). Both UUIDv4() and UUID() ignore errors from crypto/rand.Read: UUIDv4() calls google/uuid.NewRandom(), which internally uses crypto/rand, and on error falls back to the internal UUID() function; UUID() itself seeds an internal state via crypto/rand.Read(uuidSeed[:]) and, if that fails, returns the zero UUID without any error. The lack of error propagation means callers receive a predictable value with no indication of failure. The patch commit 6c6cf047032b9c8dff43d29f990b4b10e9b02d47 replaces the silent fallbacks with panics (e.g., 'utils: failed to seed UUID generator: %v'), and the advisory notes that Go 1.24+ already panics on crypto/rand failures, mitigating the issue for applications on that toolchain. The CVSS 4.0 vector is AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:L, but the independent assessment (CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N) notes that exploitation requires the RNG to fail, which an attacker cannot cause remotely-making it high-complexity and not attacker-triggerable on demand. The affected CPE strings cover gofiber:utils for Go, including all 2.0.0 beta versions and earlier releases.

Know when Utils gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 9.3 CRITICAL
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
vuln.today AI 7.4 HIGH

AC:H because exploitation depends on a rare, attacker-uncontrollable crypto/rand failure (and Go <1.24); predictable security tokens yield high confidentiality and integrity impact with no availability effect.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Fiber Utils (gofiber/utils) versions 2.0.0-rc.3 and below, including the v1 line through 1.1.0, can return predictable UUIDs, including the all-zero UUID, when crypto/rand.Read fails in applications compiled with Go prior to 1.24. This could weaken session tokens, CSRF tokens, or password-reset identifiers, but exploitation requires an already broken or entropy-starved runtime environment; no public exploit identified at time of analysis. Leadership should prioritize identifying and patching affected Go services while recognizing the practical risk is lower than the CVSS 9.3 score implies.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
Utility lib of the popular Go Fiber framework, common but Go-specific
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:gofiber:utils:*:*:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta1:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta10:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta11:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta12:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta13:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta14:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta2:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta3:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta4:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta5:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta6:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta7:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta8:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:beta9:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:rc1:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:rc2:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:rc3:*:*:*:go:*:*
cpe:2.3:a:gofiber:utils:2.0.0:rc4:*:*:*:go:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy