Uncontrolled Recursion 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.44% (39th 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-22283239
  • published8 Nov 2026
  • disclosed31 Oct 2026
  • creditYu Bao

Introduced: 31 Oct 2026

NewCVE-2026-120135  (opens in a new tab)
CWE-674  (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 Uncontrolled Recursion via the skip() function in the Java TProtocolUtil protocol utility. An attacker can supply a deeply nested Thrift value for recursive skipping; because the default recursion limit is effectively unbounded, processing can exhaust the Java stack and make the application unavailable.

Notes

  • The recursive TProtocolUtil.skip() path reaches stack exhaustion only if its depth limit allows nesting beyond the Java stack’s safe depth; the vulnerable default is effectively unbounded, but applications can lower it with setMaxSkipDepth().

CVSS Base Scores

version 4.0
version 3.1