Improper Handling of Highly Compressed Data (Data Amplification) Affecting thrift package, versions <0.24.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.1% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-THRIFT-18388999
  • published29 Jul 2026
  • disclosed27 Jul 2026
  • creditLTSHFWJT

Introduced: 27 Jul 2026

NewCVE-2026-49158  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

Upgrade thrift to version 0.24.0 or higher.

Overview

thrift is a Ruby bindings package for Apache Thrift.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) through the ZLIB transform in lib/rb/lib/thrift/transport/header_transport.rb. An attacker can trigger memory and CPU exhaustion by sending a small compressed frame that expands to an unbounded decompressed payload. When HeaderTransport processes a ZLIB-encoded payload, it inflates the entire body without enforcing a decompressed-size limit. This lets a remote peer force the Ruby client or server to allocate and process far more data than expected, causing denial-of-service and breaking transports that read untrusted HeaderTransport messages.

CVSS Base Scores

version 4.0
version 3.1