Infinite loop Affecting org.apache.thrift:libthrift 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-JAVA-ORGAPACHETHRIFT-19503863
  • 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 org.apache.thrift:libthrift to version 0.24.0 or higher.

Overview

org.apache.thrift:libthrift is a lightweight, language-independent software stack with an associated code generation mechanism for point-to-point RPC.

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