Heap-based buffer overflow vulnerability in Apache Thrift C++ THeaderTransport. (CVE-2026-91135)
Description
A heap-based buffer overflow vulnerability exists in Apache Thrift C++ THeaderTransport when the ZLIB transform is enabled for frames. The transform function copies compressed frames into a buffer without verifying size, leading to overflow if the data grows under compression. This affects Apache Thrift versions before 0.25.0. Upgrading to version 0.25.0 resolves the issue.
CVSS v4.0
Affected software
pkg:deb/ubuntu/thrift?arch=source&distro=focalpkg:deb/ubuntu/thrift?arch=source&distro=jammypkg:deb/ubuntu/thrift?arch=source&distro=noblepkg:deb/ubuntu/thrift?arch=source&distro=stonkingpkg:deb/ubuntu/thrift?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Apache Thrift C++ THeaderTransport arises from improper handling of compressed frames when the ZLIB transform is enabled. Specifically, THeaderTransport::transform() copies the compressed frame into the write buffer without ensuring the buffer is large enough. Since some data may expand rather than compress, this results in a heap-based buffer overflow where data is written beyond the allocated buffer size. This overflow can grow with the size of the frame and may also cause reads past the end of the transform buffer. The issue affects Apache Thrift versions prior to 0.25.0, with the fix implemented in version 0.25.0.
Potential Impact
This vulnerability allows an attacker to cause a heap-based buffer overflow by sending specially crafted frames that expand under compression. The overflow can lead to memory corruption, potentially resulting in application crashes or arbitrary code execution. The CVSS vector indicates network attack vector, low attack complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. However, no known exploits are reported in the wild.
Mitigation Recommendations
Users should upgrade Apache Thrift to version 0.25.0 or later, where this heap-based buffer overflow vulnerability is fixed. No other mitigations are indicated or recommended by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-91135
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad3f5322cdf04f6566585e6
Added to database: 10/17/2026, 22:22:42 UTC
Last enriched: 10/17/2026, 23:13:44 UTC
Last updated: 10/17/2026, 23:13:44 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.