Improper Handling of Length Parameter Inconsistency Affecting org.elasticsearch:elasticsearch package, versions [7.14.0,8.19.24)[9.0.0-beta1,9.4.9)[9.5.0, 9.5.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.59% (49th 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-22868756
  • published25 Nov 2026
  • disclosed23 Nov 2026
  • creditUnknown

Introduced: 23 Nov 2026

NewCVE-2026-82303  (opens in a new tab)
CWE-130  (opens in a new tab)

How to fix?

Upgrade org.elasticsearch:elasticsearch to version 8.19.24, 9.4.9, 9.5.6 or higher.

Overview

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

Affected versions of this package are vulnerable to Improper Handling of Length Parameter Inconsistency in Lz4TransportDecompressor.decodeBlock, which passes the entire inbound network buffer's backing array to the LZ4 decoder without bounding the source to the block's declared compressedLength. An attacker who can reach an affected transport interface can read data from other in-flight requests by sending a compressed request whose LZ4 block declares a literal run longer than its own compressed length, causing the decoder to read past the block into the shared buffer and return those bytes in the decompressed output. Exploitation is unauthenticated on the remote-cluster transport interface, requires network reach to a node-to-node or remote-cluster transport port, and leaks whatever adjacent-request bytes happen to share the buffer rather than an attacker-chosen target.

Workaround

This vulnerability can be avoided by keeping the node-to-node and remote-cluster transport ports private, enforcing mutual TLS on them, and restricting callers to trusted source addresses with xpack.security.transport.filter.* and xpack.security.remote_cluster.filter.*.

CVSS Base Scores

version 4.0
version 3.1