Infinite loop 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
0.61% (47th 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-19503864
  • published3 Sept 2026
  • disclosed27 Jul 2026
  • creditYu Bao

Introduced: 27 Jul 2026

CVE-2026-43871  (opens in a new tab)
CWE-835  (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 Infinite loop in TCompactProtocol varint decoding, which reads continuation bytes without enforcing a maximum byte count. An attacker can hang the process deserializing a message by sending a TCompactProtocol varint whose continuation bit stays set across an unbounded run of bytes. This requires the application to deserialize attacker-controlled TCompactProtocol input.

CVSS Base Scores

version 4.0
version 3.1