Skip to main content

Fiber CVE-2025-66630

CRITICAL
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-02-09 security-advisories@github.com GHSA-68rr-p4fp-j59v
9.4
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
Impact

CVSS 9.4 with patch. Fiber is a popular Go web framework. Predictable session tokens enable hijacking any user session.

Exploit ScenarioDerived

An attacker predicts session tokens generated by the weak PRNG and hijacks authenticated sessions of other users.

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

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

Alert me

AnalysisAIv1 – Mar 12, 2026

Go Fiber web framework before 2.52.11 has a weak PRNG vulnerability (on Go < 1.24) that makes session tokens predictable, enabling session hijacking.

Earlier versions of this analysis (1)
v1 Mar 12, 2026 - 21:54 CVSS 9.4

Weak PRNG in Fiber framework makes session tokens predictable.

RemediationAI

Update Fiber to 2.52.11+ or use Go 1.24+.

Affected Packages

go github.com/gofiber/fiber no fix
go github.com/gofiber/fiber/v2 fix: 2.52.11

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

Fiber < 2.52.11 uses a CWE-338 cryptographically weak PRNG for session token generation on Go versions prior to 1.24, making tokens predictable.

Know when Fiber 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

GitHub Advisory PRIMARY 9.4 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
SUSE CRITICAL
Red Hat 7.7 HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Feb 28, 2026 - 00:26 nvd
Patch available
CVE Published
Feb 09, 2026 - 18:16 nvd
CRITICAL 9.4

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

Fiber web framework versions prior to 2.52.11 running on Go versions before 1.24 face a critical vulnerability where cryptographic randomness failures could be exploited to compromise session security and authentication mechanisms. Organizations using affected Fiber deployments must immediately assess their Go version and Fiber version to determine exposure and prioritize patching.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Additionally: (1) Upgrade Go runtime to version 1.24+, (2) If immediate patching is impossible, isolate affected Fiber services behind WAF with strict request validation, (3) Implement additional session validation and cryptographic verification layers, (4) Enforce network segmentation to limit lateral movement if compromise occurs, (5) Enhance logging and monitoring of authentication/randomness-related errors.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
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.0%
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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*

More in Fiber

View all
CVE-2024-25124 CRITICAL POC
9.8 Feb 21

Fiber is a web framework written in go. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2026-25899 HIGH POC
7.5 Feb 24

Unbounded memory allocation in Fiber v3 (prior to 3.1.0) allows unauthenticated remote attackers to trigger denial of se

CVE-2026-25882 HIGH POC
7.5 Feb 24

Fiber web framework versions 2 and 3 are vulnerable to denial of service attacks when processing requests to routes cont

CVE-2026-25891 HIGH POC
7.5 Feb 24

Fiber web framework versions 3.0.0 and earlier on Windows contain a path traversal vulnerability that allows remote atta

CVE-2024-38513 CRITICAL
9.8 Jul 01

Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a sessio

CVE-2023-45141 HIGH
8.8 Oct 16

Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely

CVE-2023-45128 HIGH
8.8 Oct 16

Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely

CVE-2020-15111 MEDIUM
5.4 Jul 20

In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is

CVE-2023-41338 MEDIUM
5.3 Sep 08

Fiber is an Express inspired web framework built in the go language. Rated medium severity (CVSS 5.3), this vulnerabilit

CVE-2025-54801 HIGH
8.7 Aug 06

Fiber is an Express inspired web framework written in Go. Rated high severity (CVSS 8.7), this vulnerability is remotely

CVE-2025-48075 HIGH POC
7.7 May 22

Fiber is an Express-inspired web framework written in Go. Rated high severity (CVSS 7.7), this vulnerability is remotely

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

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