---
id: CVE-2026-83745
title: "Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift\_\nnodejs and D lang bindings.\n\nBoth bindings' WebSocket server transports read the payload length out of the\_f…"
summary: "Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift\_\nnodejs and D lang bindings.\n\nBoth bindings' WebSocket server transports read the payload length out of the\_f…"
severity: high
cvss: 8.7
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cwe:
  - CWE-130
  - CWE-789
vendor: Apache Software Foundation
product: thrift
affected:
  - thrift < 0.25.0
  - d_language_bindings < 0.25.0
published: '2026-10-02'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T13:17:58.927'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-83745'
references:
  - url: 'https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/64y7f0b89mnq4xoqcn4h26to8kskolgc'
    label: security@apache.org
tags:
  - nvd
  - cve.org
cvssSource: cna
ingestedAt: '2026-10-02T12:17:44.360Z'
---

## Overview

Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift 
nodejs and D lang bindings.

Both bindings' WebSocket server transports read the payload length out of the frame header and allocate that many bytes immediately, without checking that the bytes have arrived. A single ~14-byte frame therefore commits as much memory as it cares to declare -- measured at 513 MiB against the Node.js server and 2 GiB against the D transport -- and in the Node.js case the connection is left open afterwards, so the frame can simply be sent again.




This issue affects Apache Thrift before 0.25.0.



Users are recommended to upgrade to version 0.25.0, which fixes the issue.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
