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-2026-25899

The 10-Byte Killer: How a Tiny Cookie Crushed GoFiber v3

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 24, 2026·5 min read·61 visits

Executive Summary (TL;DR)

Unauthenticated DoS in GoFiber v3 via the `fiber_flash` cookie. A 5-byte payload triggers an 85GB memory allocation, crashing the server instantly. Fixed in v3.1.0.

GoFiber v3, a framework renowned for its blistering speed, fell victim to a critical Denial of Service vulnerability rooted in its handling of flash messages. By sending a specially crafted 'fiber_flash' cookie containing just 10 hex characters, an unauthenticated attacker could trick the server into attempting an 85GB memory allocation, triggering an immediate crash.

The Hook: The Phantom Cookie

GoFiber loves speed. It's built on top of fasthttp, bypassing Go's standard library to squeeze every microsecond out of request processing. But in the race for performance, safety sometimes gets left in the dust. Enter the fiber_flash cookie, a mechanism designed to pass temporary messages between requests (like "Login Successful").

Here is the kicker: in GoFiber v3, this logic was baked into the core requestHandler. It didn't matter if your application actually used flash messages. It didn't matter if you disabled every optional middleware. Before your router even looked at the URL, before your auth middleware checked the headers, the framework was eagerly digging through cookies looking for fiber_flash.

It’s the digital equivalent of a stranger walking into your house and opening your fridge before you’ve even unlocked the front door. If that stranger brings a specific, malformed packet of data, they don't just eat your food—they burn the house down.

The Flaw: Trust Issues

The vulnerability (CVE-2026-25899) is a textbook case of CWE-789: Memory Allocation with Excessive Size Value. It stems from how GoFiber handles—or rather, mishandles—deserialization using the tinylib/msgp library.

MessagePack (MsgPack) is a binary serialization format that is faster and smaller than JSON. When encoding an array, MsgPack uses a header to declare the number of elements. For example, 0x93 means "Array with 3 elements." The deserializer reads this header and prepares to read 3 objects.

The flaw lay in the auto-generated code's blind trust. It read the array size header and immediately allocated memory to hold that many elements, without checking if the input buffer actually contained enough data to fill them. It’s like a contractor ordering materials to build a skyscraper because a client wrote "100 floors" on a napkin, without checking if the client actually had the budget (or the land) for it.

The Code: The Smoking Gun

Let's look at the generated code in redirect_msgp.go. This is where the magic (and the crash) happens. The UnmarshalMsg method is responsible for turning bytes back into a struct.

// The Vulnerable Logic in GoFiber v3 < 3.1.0
func (z *redirectionMsgs) UnmarshalMsg(bts []byte) (o []byte, err error) {
    var zb0002 uint32
    // 1. Read the array size from the wire (attacker controlled!)
    zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
    if err != nil {
        return
    }
    
    // 2. THE BUG: Blind allocation
    // If the attacker says zb0002 is 2 billion, we allocate 2 billion structs.
    if cap((*z)) >= int(zb0002) {
        (*z) = (*z)[:zb0002]
    } else {
        (*z) = make(redirectionMsgs, zb0002) // <--- CRASH HERE
    }
    
    // ... loop to read elements ...
}

The variable zb0002 is a uint32 taken directly from the input. If I send a header saying "I have 2 billion items," the Go runtime dutifully attempts to find contiguous memory for 2 billion redirectionMsg structs. It doesn't care that I only sent 5 bytes of actual data.

The Exploit: Death by 10 Bytes

You don't need a botnet. You don't need a supercomputer. You just need curl and ten hex characters. The attack vector is shockingly simple and affects every endpoint on the server.

The Payload: dd7fffffff

Let's break that down:

  • dd: The MessagePack marker for Array32 (an array with a 32-bit length).
  • 7fffffff: The hexadecimal representation of 2,147,483,647 (MaxInt32).

The Attack:

curl -H "Cookie: fiber_flash=dd7fffffff" http://target:3000/

When the server receives this, it decodes the hex and hits the allocator. It tries to allocate a slice for 2.14 billion structs. Even if the struct is small (say, 40 bytes), that requires requesting ~85 Gigabytes of RAM instantly.

Unless your server is running on a high-end mainframe, the Go runtime immediately panics with runtime: out of memory. The process dies. If you're running this in Kubernetes without strict restart policies, you just entered a crash loop. If you're on a standard VPS, your service is dead until you wake up and restart it.

The Fix: Closing the Window

The fix in version 3.1.0 is simple sanity checking. You can't fit a gallon of water in a shot glass, and you can't fit 2 billion array elements in a 5-byte payload.

The patched code introduces a check against the remaining bytes in the buffer. Before allocating, it calculates: "Does the remaining input stream have enough bytes to theoretically hold X elements?"

// The Fix Logic (Conceptual)
if availableBytes < (arraySize * minElementSize) {
    return error("array size exceeds available data")
}
make(slice, arraySize)

By validating that the declared size is physically possible given the input, the allocation is blocked before it hits the OS. This is a classic defense-in-depth strategy: never trust the client's metadata without verifying it against the actual data.

Official Patches

GoFiberOfficial Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Probability
0.10%
Top 100% most exploited
15,000
via Shodan

Affected Systems

GoFiber Web Framework (v3 branch)

Affected Versions Detail

Product
Affected Versions
Fixed Version
GoFiber
GoFiber
>= 3.0.0, < 3.1.03.1.0
AttributeDetail
CWECWE-789 (Memory Allocation with Excessive Size Value)
CVSS v3.17.5 (High)
Attack VectorNetwork (Cookie Header)
ImpactDenial of Service (OOM Panic)
AuthenticationNone Required
Exploit StatusHigh (Trivial PoC)

MITRE ATT&CK Mapping

T1499.003Endpoint Denial of Service: Application or System Exploitation
Impact
CWE-789
Memory Allocation with Excessive Size Value

The product allocates memory based on an untrusted size value, allowing an attacker to cause a denial of service via memory exhaustion.

Known Exploits & Detection

Research ReportCookie-based memory exhaustion PoC
NucleiDetection Template Available

Vulnerability Timeline

Vulnerability Disclosed & Patch Released
2026-02-24
PoC Published
2026-02-24

References & Sources

  • [1]GHSA Advisory
  • [2]CWE-789 Explanation

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

•about 4 hours ago•GHSA-4PH6-MJV7-3FQ6
6.5

GHSA-4PH6-MJV7-3FQ6: Improper Handling of Untrusted DNS-over-HTTPS Response Data in netfoil

netfoil, an allowlist-based DNS proxy, failed to sanitize ALPN fields parsed from untrusted DNS-over-HTTPS (DoH) HTTPS Resource Records. This allowed attackers to inject ANSI escape sequences into log files or trigger Denial of Service (DoS) via uncontrolled memory allocations.

Alon Barad
Alon Barad
4 views•6 min read
•about 4 hours ago•GHSA-3GJW-F78C-VVPW
7.5

GHSA-3GJW-F78C-VVPW: Denial of Service via Unhandled Out-of-Bounds Indexing Panic in tokio-postgres

An issue was discovered in the tokio-postgres library for Rust prior to version 0.7.18. A trust assumption mismatch between the PostgreSQL protocol messages sent by a server and how they are parsed and indexed by the client-side library allows a rogue or compromised database server to trigger a Denial of Service (DoS) crash via an unhandled out-of-bounds slice indexing panic.

Alon Barad
Alon Barad
5 views•6 min read
•about 19 hours ago•CVE-2026-14669
8.8

CVE-2026-14669: PostgreSQL to_char() Timezone Abbreviation Heap-Based Buffer Overflow

CVE-2026-14669 is a critical heap-based buffer overflow vulnerability in PostgreSQL's date/time formatting function to_char(timestamptz). The flaw arises from unsafe copying of user-controlled timezone abbreviations into a fixed-size internal buffer. An authenticated database user can trigger this issue by setting a long POSIX timezone abbreviation containing custom formatting, allowing them to overwrite adjacent heap structures and hijack execution control to achieve remote code execution (RCE) with the privileges of the 'postgres' operating system user.

Alon Barad
Alon Barad
13 views•6 min read
•3 days ago•CVE-2026-63462
7.5

CVE-2026-63462: Unauthenticated Stack Overflow Denial of Service in Unleash Server

An unauthenticated remote denial of service vulnerability exists in the Unleash feature management platform. By submitting a crafted JSON payload containing deeply nested structures to an OpenAPI-validated endpoint, an attacker can trigger uncontrolled recursion within the error formatting module. This leads to a call-stack exhaustion (RangeError: Maximum call stack size exceeded) inside the Node.js runtime, causing the service to crash immediately without recovery.

Alon Barad
Alon Barad
11 views•6 min read
•3 days ago•CVE-2026-63004
5.5

CVE-2026-63004: Server-Side Request Forgery in Unleash Addon and Integration Subsystem

CVE-2026-63004 is a server-side request forgery (SSRF) vulnerability in the Unleash feature management platform. Authenticated administrators with CREATE_ADDON or UPDATE_ADDON privileges can exploit this vulnerability to initiate requests to loopback addresses, private networks, and cloud metadata endpoints, potentially leading to information disclosure and credential extraction.

Amit Schendel
Amit Schendel
9 views•8 min read
•3 days ago•CVE-2026-63466
4.1

CVE-2026-63466: Process-Wide Security Degradation via Global Module Mutation in Unleash

Prior to version 8.0.3, Unleash's Markdown event formatter directly mutated the global template-escaping function of the shared mustache Node.js module, resulting in a process-wide security degradation where HTML/Markdown escaping was permanently disabled for the application lifetime.

Alon Barad
Alon Barad
3 views•6 min read