---
id: CVE-2026-91135
title: >-
  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 wi…
summary: >-
  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 wi…
severity: critical
cvss: 9.2
cvssVector: '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'
cwe:
  - CWE-122
vendor: Apache Software Foundation
product: thrift
affected:
  - thrift < 0.25.0
published: '2026-10-02'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T11:17:37.277'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91135'
references:
  - url: 'https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/rbpwlhlxnv2qgyk8cfscp2d2fd3p0ojb'
    label: security@apache.org
tags:
  - nvd
  - cve.org
cvssSource: cna
ingestedAt: '2026-10-02T11:16:44.277Z'
---

## Overview

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.

## Remediation

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