Memory Allocation with Excessive Size Value Affecting github.com/apache/thrift/lib/go/thrift package, versions <0.25.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (25th 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 Learn

Learn about Memory Allocation with Excessive Size Value vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMAPACHETHRIFTLIBGOTHRIFT-21717091
  • published26 Oct 2026
  • disclosed2 Oct 2026
  • creditAdam Korczynski

Introduced: 2 Oct 2026

NewCVE-2026-63772  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade github.com/apache/thrift/lib/go/thrift to version 0.25.0 or higher.

Overview

github.com/apache/thrift/lib/go/thrift is a Go implementation of the Apache Thrift library.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via list, set, and map decoding in its Go protocol readers and generated decoders. An unauthenticated remote attacker can send a message declaring a very large container element count that the available payload cannot support; the generated decoder reserves memory for that count before decoding the elements, exhausting memory and crashing the server.

Notes

  • At the protocol-header validation step, the declared count is still bounded by TConfiguration.MaxMessageSize; it need not fit in the actual payload, but a lower configured limit reduces the maximum count the decoder will use for its allocation.

CVSS Base Scores

version 4.0
version 3.1