Description
Heap-based buffer overflow vulnerability in Apache Thrift C++ THeaderTransport.



When an application enables the ZLIB transform for the frames it sends, THeaderTransport::transform() copies the compressed frame into the write buffer without making sure it fits. Data that does not compress, such as content a remote peer supplied, grows under compression, so the copy writes past the end of the heap buffer by an amount that grows with the size of the frame, and for large frames it also reads past the end of the transform buffer.



This issue affects Apache Thrift: before 0.25.0.



Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Published: 2026-10-02
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote code execution
Action: Immediate Patch
AI Analysis

Impact

A heap-based buffer overflow exists in Apache Thrift’s C++ THeaderTransport::transform() routine. When a frame is processed with the ZLIB transform enabled, the routine copies the compressed frame into a write buffer without validating the compressed size. Frames that fail to compress well grow during compression, causing the copy to write beyond the end of the heap buffer and, for large frames, to read past the transform buffer’s boundary. This unchecked memory corruption can allow an attacker to overwrite data on the heap, potentially leading to arbitrary code execution or a service crash.

Affected Systems

All applications built with Apache Thrift prior to version 0.25.0 are affected. Any service that enables the ZLIB transform for frames it sends and accepts untrusted Thrift traffic from external peers is potentially vulnerable.

Risk and Exploitability

The CVSS score of 9.2 indicates a high severity flaw, while the EPSS score of less than 1% shows a presently low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. An attacker can exploit the flaw over the network by sending large, poorly compressing frames to the target, without needing authentication, and thereby trigger the out‑of‑bounds write for potential remote code execution or denial of service.

Generated by OpenCVE AI on October 13, 2026 at 02:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Thrift to version 0.25.0 or later, which contains the fix for the overflow.
  • If an upgrade is delayed, disable the ZLIB transform for outgoing frames to avoid the unchecked copy until the patch is applied.
  • Implement input validation or size limits on frames before processing to mitigate the risk of overflow in legacy versions.

Generated by OpenCVE AI on October 13, 2026 at 02:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H'}

threat_severity

Moderate


Sat, 03 Oct 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache thrift
Vendors & Products Apache
Apache thrift

Fri, 02 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
Description Heap-based buffer overflow vulnerability in Apache Thrift C++ THeaderTransport. When an application enables the ZLIB transform for the frames it sends, THeaderTransport::transform() copies the compressed frame into the write buffer without making sure it fits. Data that does not compress, such as content a remote peer supplied, grows under compression, so the copy writes past the end of the heap buffer by an amount that grows with the size of the frame, and for large frames it also reads past the end of the transform buffer. This issue affects Apache Thrift: before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Title Apache Thrift: C++ `THeaderTransport::transform()` heap buffer overflow (write direction)
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-02T17:47:39.521Z

Reserved: 2026-09-14T19:41:58.259Z

Link: CVE-2026-91135

cve-icon Vulnrichment

Updated: 2026-10-02T17:47:20.592Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T11:17:37.277

Modified: 2026-10-02T18:17:06.963

Link: CVE-2026-91135

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-02T10:28:50Z

Links: CVE-2026-91135 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T03:00:11Z

Weaknesses