Integer Overflow or Wraparound Affecting github.com/apache/thrift/lib/go/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.16% (64th 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-GOLANG-GITHUBCOMAPACHETHRIFTLIBGOTHRIFT-16323410
  • published30 Apr 2026
  • disclosed28 Apr 2026
  • creditUnknown

Introduced: 28 Apr 2026

CVE-2026-41602  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade github.com/apache/thrift/lib/go/thrift to version 0.24.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 Integer Overflow or Wraparound due to improper handling of integer values in the TFramedTransport() function on 32-bit architectures. An attacker can cause resource exhaustion or unexpected behavior by sending specially crafted input that triggers an integer overflow.

Note:

  • As explained in fix PR Description, the initial fix, which was introduced in 0.23.0, was incomplete and could fail on 32-bit systems. While this version partially resolves the issue, we recommend using 0.24.0, which includes the complete patch.

CVSS Base Scores

version 4.0
version 3.1