Infinite loop Affecting org.elasticsearch:elasticsearch package, versions [7.16.0,8.19.26)[9.0.0-beta1, 9.4.10)[9.5.0, 9.5.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (29th 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-ORGELASTICSEARCH-22958497
  • published25 Nov 2026
  • disclosed23 Nov 2026
  • creditUnknown

Introduced: 23 Nov 2026

NewCVE-2026-133981  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade org.elasticsearch:elasticsearch to version 8.19.26, 9.4.10, 9.5.7 or higher.

Overview

org.elasticsearch:elasticsearch is a Distributed, RESTful Search Engine.

Affected versions of this package are vulnerable to Infinite loop in the sha256FromCompressed and crc32FromCompressed methods of CompressedXContent, which inflate already-compressed input until Inflater.finished() returns true and do not handle a truncated deflate stream, for which inflate() returns 0 with needsInput() true indefinitely. A user with the create_doc index privilege can occupy a request-processing thread at full CPU until the node is restarted by sending a POST _ingest/_simulate request whose component_template_substitutions or index_template_substitutions contain a mappings value set to a Base64 string of truncated deflate data, and repeated requests exhaust the node's request threads. On versions before 8.16.0, which lack these substitutions, the same input requires the manage_index_templates cluster privilege, through the component and index template APIs.

CVSS Base Scores

version 4.0
version 3.1