CVE-2026-91135 PUBLISHED

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

Assigner: apache
Reserved: 14.09.2026 Published: 02.10.2026 Updated: 02.10.2026

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.

Metrics

CVSS 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
CVSS Score: 9.2

Product Status

Vendor Apache Software Foundation
Product Apache Thrift
Versions Default: unaffected
  • affected from 0 to 0.25.0 (excl.)

Credits

  • glit3h from ZeroVuln Labs finder

References

Problem Types

  • CWE-122 Heap-based buffer overflow CWE