CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2025-66630

The Null Identity: Unmasking Fiber's Critical 'Zero-UUID' Vulnerability

Alon Barad
Alon Barad
Software Engineer

Feb 9, 2026·6 min read·206 visits

Executive Summary (TL;DR)

Fiber < 2.52.11 silently ignores RNG failures, defaulting to an all-zero UUID. Attackers can exploit this to predict session IDs, hijack user accounts, and bypass security middleware.

A critical failure in the Fiber web framework's random number generation logic allows for the creation of predictable, zero-value UUIDs. This flaw leads to catastrophic session hijacking and CSRF bypass scenarios when the underlying system entropy source is exhausted or unavailable.

The Hook: When Fast Means Loose

Fiber promotes itself as the 'Express.js of Go'—fast, minimalist, and developer-friendly. It’s built for speed, often touted as one of the fastest HTTP engines available. But in the world of systems programming, speed frequently comes at the cost of safety, specifically when it comes to error handling. The philosophy of 'move fast and break things' is fine for a UI, but it is absolute poison for cryptography.

This vulnerability is a classic example of 'silent failure.' In a robust security architecture, if a critical component like a Random Number Generator (RNG) fails, the system should crash immediately (fail-secure). It should scream, panic, and refuse to process another byte. Fiber, however, did the polite thing: it shrugged, ignored the error, and handed the user a token made of zeros.

CVE-2025-66630 isn't just a bug; it's a fundamental architectural oversight in how the framework handles the absence of entropy. It turns what should be a unique, cryptographically secure identifier into a constant, predictable value (00000000-0000-0000-0000-000000000000). If your session ID, CSRF token, or request ID is derived from this function, you don't have a security system anymore—you have a hardcoded backdoor.

The Flaw: The Sound of Silence

The root cause lies in how Fiber interacts with Go's crypto/rand package, specifically on Go versions prior to 1.24. In the Unix philosophy, read operations can fail. They can fail because of file descriptor exhaustion, permissions issues, or simply because the entropy pool is temporarily starving. A responsible application checks for these failures.

In Fiber's utils package, the UUID() and UUIDv4() functions are responsible for generating unique identifiers. These functions call rand.Read(), which attempts to pull random bytes from the OS (usually via /dev/urandom or getrandom).

The flaw is almost insultingly simple: Fiber called rand.Read(), but when the operating system replied with "I can't do that right now," the code simply returned nil or ignored the error entirely.

Because Go initializes byte slices to zero, the buffer intended to hold random data remained a sequence of 0x00 bytes. The function then proceeded to format these null bytes into a standard UUID string. The result is a valid-looking, but entirely non-random UUID. This transforms a probabilistic uniqueness guarantee (1 in 2^122) into a deterministic certainty of collision.

The Code: Anatomy of a Screw-Up

Let's look at the smoking gun in utils/common.go. This is a textbook example of why Go's if err != nil idiom exists—and why ignoring it is fatal.

The Vulnerable Code

// BEFORE: The "Ostrich Algorithm" (Head in sand)
func UUID() string {
    uuidSetup.Do(func() {
        // CRITICAL FLAW: The error is checked, but logic returns
        // leaving uuidSeed as default zero-value memory.
        if _, err := rand.Read(uuidSeed[:]); err != nil {
            return 
        }
        uuidCounter = binary.LittleEndian.Uint64(uuidSeed[:8])
    })
    // Code continues to generate UUIDs based on uuidSeed...
}

When rand.Read fails, the return statement exits the anonymous function, but uuidSeed (a package-level variable) is never mutated. It stays [0, 0, 0, ...].

The Fix

The patch introduced in version 2.52.11 (Commit eb874b6f6c5896b968d9b0ab2b56ac7052cb0ee1) changes this behavior to "fail-secure". If we can't be random, we shouldn't be running.

// AFTER: Fail-Secure
func UUID() string {
    uuidSetup.Do(func() {
        if _, err := rand.Read(uuidSeed[:]); err != nil {
            // Panic ensures the app crashes rather than running insecurely
            panic(fmt.Sprintf("utils: failed to seed UUID generator: %v", err))
        }
        uuidCounter = binary.LittleEndian.Uint64(uuidSeed[:8])
    })
    // ...
}

The developers also patched UUIDv4 to ensure that if the external Google UUID library fails, the application doesn't fall back to the insecure internal implementation without a safety check.

The Exploit: Becoming Everyone at Once

How do we weaponize this? We need to force the server into a state where rand.Read() fails. In a high-load environment or a constrained container, this is easier than it sounds. The most reliable method is File Descriptor Exhaustion.

Attack Scenario

  1. Preparation: The attacker identifies a target Fiber server running on an older Go version (< 1.24) and Fiber < 2.52.11.
  2. Trigger: The attacker floods the server with open connections (DoS), exhausting the available file descriptors. Since reading /dev/urandom often requires a file descriptor, the OS refuses the read syscall.
  3. The Event: A victim logs in. The Session Middleware calls utils.UUIDv4() to generate a Session ID.
  4. The Failure: rand.Read fails. Fiber ignores it. The Session ID becomes 00000000-0000-0000-0000-000000000000.
  5. The Capture: The attacker, knowing this condition exists, simply sets their own browser cookie to 00000000-0000-0000-0000-000000000000.

Suddenly, the attacker is logged in as the victim. In fact, every user who logs in during this entropy starvation period will share the exact same session storage. It’s a massive collision where private data leaks across user boundaries.

> [!NOTE] > This isn't just about sessions. CSRF tokens, typically used to prevent state-changing attacks, also become the zero-UUID. An attacker can now forge a request to delete your account, knowing exactly what the 'secret' anti-forgery token will be.

The Impact: Why You Should Panic

The CVSS score of 9.2 is justified. This vulnerability compromises the three pillars of security: Confidentiality, Integrity, and Availability (if you count the eventual crash when the database constraint violations hit).

Session Hijacking: This is the marquee impact. In a worst-case scenario (e.g., a login microservice), a single hiccup in the RNG turns the application into a free-for-all.

Data Corruption: If the application uses these UUIDs as primary keys in a database, the system will start throwing constraint violations immediately. If it doesn't enforce uniqueness, you will have database rows for different users merging into one entity.

Security Middleware Bypass: Fiber's ecosystem relies heavily on these utils. The Idempotency middleware, RequestID middleware, and CSRF middleware all crumble. You lose auditing capabilities (every request has ID 00...00) and replay protection simultaneously.

The Fix: Kill It With Fire (and Updates)

The remediation path is twofold: patch the library and harden the runtime.

1. Update Fiber: You must upgrade to v2.52.11 or later. The patch forces a panic when RNG fails. A crashing app is better than a compromised one.

2. Upgrade Go: If possible, move to Go 1.24+. Newer versions of Go have improved crypto/rand implementations that are more resilient to system failures (like falling back to getrandom syscalls that don't require file descriptors on Linux).

3. Monitoring: Set up alerts for panic events in your logs. If your application starts crashing with failed to seed UUID generator, it means your infrastructure is fundamentally broken (no entropy or no FDs), and you have bigger problems to solve than just updating a library.

Official Patches

FiberFiber v2.52.11 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
9.2/ 10
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Affected Systems

Fiber Web Framework (Go)Applications using Fiber Session MiddlewareApplications using Fiber CSRF MiddlewareApplications using Fiber RequestID Middleware

Affected Versions Detail

Product
Affected Versions
Fixed Version
github.com/gofiber/fiber/v2
GoFiber
< 2.52.112.52.11
AttributeDetail
CWE IDCWE-338
Attack VectorNetwork
CVSS Score9.2 (Critical)
ImpactSession Hijacking, CSRF Bypass
Exploit StatusPoC Available
Patch Date2026-02-09

MITRE ATT&CK Mapping

T1557Adversary-in-the-Middle
Credential Access
T1190Exploit Public-Facing Application
Initial Access
T1563Remote Service Session Hijacking
Lateral Movement
CWE-338
Use of Cryptographically Weak PRNG

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Known Exploits & Detection

TheoreticalEnvironment-based exploitation via entropy starvation or file descriptor exhaustion.

Vulnerability Timeline

Vulnerability Published
2026-02-09
Patch v2.52.11 Released
2026-02-09

References & Sources

  • [1]GitHub Security Advisory
  • [2]NVD Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•1 day ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
6 views•10 min read
•1 day ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
12 views•12 min read
•1 day ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read
•1 day ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
13 views•10 min read
•1 day ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
14 views•10 min read
•1 day ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
6 views•9 min read