Skip to main content
Vulnerability Database/CVE-2026-83745

CVE-2026-83745: Apache Thrift WebSocket DOS Vulnerability

CVE-2026-83745 is a denial of service flaw in Apache Thrift nodejs and D lang bindings that enables memory exhaustion through malicious WebSocket frames. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-83745 Overview

CVE-2026-83745 is a memory allocation flaw in Apache Thrift's Node.js and D language bindings. The WebSocket server transports read a payload length from the frame header and immediately allocate that many bytes without verifying the data has arrived. A single frame of roughly 14 bytes forces the server to commit large memory blocks on demand. Researchers measured 513 MiB allocated against the Node.js server and 2 GiB against the D transport from one crafted frame. The Node.js server leaves the connection open after allocation, allowing the attacker to replay the frame repeatedly. The weakness is tracked as [CWE-130: Improper Handling of Length Parameter Inconsistency].

Critical Impact

An unauthenticated remote attacker can exhaust server memory by sending minimal WebSocket frames, causing denial of service against any Apache Thrift deployment using the vulnerable Node.js or D bindings.

Affected Products

  • Apache Thrift Node.js binding (WebSocket server transport) before 0.25.0
  • Apache Thrift D language binding (WebSocket transport) before 0.25.0
  • Any application built on these bindings exposing WebSocket endpoints

Discovery Timeline

  • 2026-10-02 - CVE-2026-83745 published to NVD
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-83745

Vulnerability Analysis

Apache Thrift provides cross-language RPC services. The Node.js and D language bindings include WebSocket server transports that parse incoming frames according to the WebSocket protocol. The frame header carries a declared payload length used to size the receive buffer.

The vulnerable transports trust that length value without validating it against the actual bytes received or against any upper bound. The server allocates a buffer matching the declared length before confirming the payload will arrive. An attacker who declares a multi-gigabyte frame triggers a corresponding allocation from a single short header.

In the Node.js case the socket stays open after the allocation attempt. The attacker can resend the same frame to multiply the memory pressure on the process. Repeated frames from one or many connections drive the Node.js runtime into memory exhaustion and process termination.

Root Cause

The root cause is the absence of length validation prior to buffer allocation in the WebSocket frame parser. The code paths accept the attacker-controlled length field as authoritative. No cap, no streaming read, and no reconciliation between declared size and received bytes exists in versions before 0.25.0.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker opens a WebSocket connection to the Thrift server and sends a frame with an inflated payload length field. The server allocates the full declared size immediately. The attacker then closes the connection or, against the Node.js binding, keeps it open and resends the frame to amplify resource consumption.

Detection Methods for CVE-2026-83745

Indicators of Compromise

  • Sudden spikes in resident memory for Node.js or D-based Thrift server processes without corresponding request volume
  • WebSocket connections with declared frame payload lengths that exceed configured application limits
  • Process restarts or out-of-memory kills in services exposing Thrift WebSocket endpoints
  • Repeated small inbound WebSocket frames from the same client followed by connection persistence

Detection Strategies

  • Inspect WebSocket frame headers at the ingress proxy and alert on declared payload lengths above an application-defined threshold
  • Correlate process memory telemetry with WebSocket connection counts to identify asymmetric growth
  • Monitor Node.js garbage collection metrics and heap size trends on Thrift services
  • Review application logs for allocation failures or ERR_INVALID_ARG_VALUE events tied to Buffer sizing

Monitoring Recommendations

  • Enable per-process memory limits and track RSS over time with alerting at 70% of configured limits
  • Capture WebSocket traffic metadata at load balancers to retain frame size distributions for forensic review
  • Set rate limits on new WebSocket connection establishment per source IP
  • Forward Thrift server logs and host metrics into a centralized analytics platform for correlation

How to Mitigate CVE-2026-83745

Immediate Actions Required

  • Upgrade Apache Thrift to version 0.25.0 or later in all environments using Node.js or D bindings
  • Audit services for exposure of Thrift WebSocket transports to untrusted networks and restrict access where possible
  • Place a WebSocket-aware reverse proxy in front of Thrift servers to enforce maximum frame size
  • Apply per-connection and per-IP rate limits at the edge

Patch Information

Apache Thrift version 0.25.0 fixes CVE-2026-83745. The patched bindings validate the declared frame length before allocating buffers. Review the Apache Mailing List Discussion and the Apache Mailing List Update for release details and discussion context.

Workarounds

  • Terminate WebSocket traffic at a proxy such as NGINX or Envoy and set strict client_max_body_size or equivalent frame limits
  • Disable the WebSocket transport in affected bindings if the application does not require it
  • Enforce operating system memory ceilings using cgroups or container runtime limits to contain damage
  • Require mutual TLS or network-layer authentication for WebSocket endpoints to reduce the attacker population
bash
# NGINX reverse proxy snippet limiting WebSocket frame size
http {
    client_max_body_size 1m;
    proxy_read_timeout 30s;

    server {
        listen 443 ssl;
        location /thrift-ws {
            proxy_pass http://thrift_backend;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            limit_req zone=ws_zone burst=5 nodelay;
        }
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.