CVE-2026-91135

Apache Thrift: C++ `THeaderTransport::transform()` heap buffer overflow (write direction)

Published Oct 2, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Apache
Apache thrift
Vendors & Products Apache
Apache thrift
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 2, 2026, 5:47 PM
Reserved
Sep 14, 2026, 7:41 PM
Status
Deferred
Published
Oct 2, 2026, 11:17 AM
Modified
Oct 2, 2026, 6:17 PM
Severity
Moderate
Public date
Oct 2, 2026, 10:28 AM