Introduction
A single missing length argument in the Elasticsearch LZ4 transport decoder allowed a crafted compressed request to pull bytes belonging to other requests out of a shared network buffer and return them to the sender. Elastic states that the exposed remote cluster transport interface can be exploited without authentication, so clusters that federate search across environments are the deployments where transport reachability matters most for this issue.
The flaw is tracked as CVE-2026-82303 and classified as CWE-126 (buffer overread). Elastic, the assigning authority, rates it 7.5 (High) with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N: network reachable, low complexity, no privileges, no user interaction, and high confidentiality impact with no integrity or availability impact scored. NVD published the record on November 23, 2026 and has not yet supplied its own assessment. NVD lists the vendor as Unknown, but the advisory and CVE record identify the vendor as Elastic.
Technical information
Transport block layout
Elasticsearch can compress transport messages with LZ4. Each transport LZ4 block starts with a small header that declares two values, compressedLength and decompressedLength, followed by the compressed bytes. Inside the LZ4 payload, every sequence begins with a token. The high nibble of that token, plus any extension bytes, tells the decoder how many literal bytes to copy directly from the source.
That means the payload itself, not the outer header, drives how far the decoder reads. The outer compressedLength only becomes a security boundary if the code actually enforces it.
Root cause
In Lz4TransportDecompressor.decodeBlock(), the vulnerable code invoked the decompressor like this:
decompressor.decompress(compressed, compressedOffset, decompressed, 0, decompressedLength);
Three properties combined into the bug:
- The source was shared. When a block arrived in one piece,
compressedwas the backing array of the shared inbound network buffer, not a private copy of the block. - Only the output was bounded. The decompressor was told how many bytes to produce (
decompressedLength) but never how many bytes it was allowed to read. As the PR description puts it, the decompressor "had no length limit on the source". - The declared length was used too late.
compressedLengthwas consulted only after decompression, to advance the stream's read cursor.
An attacker could therefore send a block whose header declares a small compressedLength while the LZ4 sequence inside it encodes a literal run claiming more bytes. The decoder would keep copying literals past the end of the block into whatever followed in the shared buffer, which could be data from another request. Those bytes ended up in the attacker's decompressed message.
Attack flow
Based on the advisory and the patch description, the documented sequence is:
- The attacker reaches an affected Elasticsearch transport interface. Elastic explicitly states that the exposed remote cluster transport interface does not require authentication.
- The attacker sends a compressed transport request containing an LZ4 block whose header declares a short
compressedLength, but whose literal run length exceeds the bytes actually present in the block. - The decoder copies literals beyond the declared block boundary into adjacent bytes of the shared inbound network buffer.
- Those adjacent bytes, potentially belonging to other requests, become part of the attacker's decompressed message, and the attacker obtains data from outside their own request.
The public material does not document a reliable amount of disclosed data, a technique for selecting which request's bytes are adjacent, arbitrary memory access, or code execution. The supported finding is a request isolation failure in the decompression path: disclosure of data outside the submitted request. Elastic includes node transport in its exposure reduction guidance but does not separately describe authentication prerequisites for every node transport configuration, so we would not assume all interfaces behave identically.
Exploitation status
The reviewed sources do not confirm active exploitation and do not name a campaign or threat actor. Rapid7 reports that the CVE is not in the CISA KEV catalog and that no EPSS score is available. We did not locate a public proof of concept. An unavailable probability score is not the same as a zero probability score.
Patch information
Elastic fixed CVE-2026-82303 in Elasticsearch 8.19.24, 9.4.9 and 9.5.6, according to advisory ESA-2026-cg7q-c6wj. The advisory does not list a fixed 7.x release and does not name a commit. The matching public change is elastic/elasticsearch PR 161345, "Validate LZ4 transport block decompression to its declared length", by Slobodan Adamović:
- It was merged on October 8, 2026 and carries an automatic backport label plus the version labels
v8.19.24,v9.4.9,v9.5.6andv9.6.0. The first three match the fixed versions in the advisory exactly. - The 8.19.24 release notes list it under Infra/Core.
- It modifies
Lz4TransportDecompressor.java, the LZ4 transport decoder named in the CVE description.
The code change
The PR adds an import:
import java.nio.ByteBuffer;
and replaces the single unbounded decompress call shown earlier with the following:
final ByteBuffer src = ByteBuffer.wrap(compressed, compressedOffset, compressedLength).slice(); final int read = decompressor.decompress(src, 0, ByteBuffer.wrap(decompressed), 0, decompressedLength); if (read != compressedLength) { throw new IllegalStateException( String.format( Locale.ROOT, "stream corrupted: read %d bytes, expected compressedLength(%d)", read, compressedLength ) ); }
The patch introduces two independent defences:
- A hard source boundary.
ByteBuffer.wrap(compressed, compressedOffset, compressedLength).slice()produces a view that begins at byte 0 of the block and ends exactly at the declaredcompressedLength. Bytes that follow the block in the network buffer are no longer visible to the decoder. If a literal run or match extends past that end, the LZ4 library raises a "Malformed input" error instead of reading neighbouring bytes. This closes the overread itself. - An exact consumption check. The
ByteBufferoverload ofdecompressreturns how many source bytes were read. The new code requires that value to equalcompressedLengthand otherwise throwsIllegalStateException("stream corrupted: ..."). This handles the inverse case, a block that fills its output before consuming its declared input. Previously those leftover bytes were silently skipped when the cursor advanced; now the block is rejected, so the decoder and the framing layer cannot disagree about where a block ends.
In both cases a malformed block fails decoding with an exception, so no partially filled output page reaches the transport layer.
Regression tests
The PR adds 82 lines to Lz4TransportDecompressorTests. The tests hand-build a transport frame (LZ4\0 header, LZ4Block magic, compressed block type, little-endian lengths, a dummy checksum) around a single literal-run LZ4 sequence:
testCompressedBlockDecodingStopsAtDeclaredBoundaryplaces "trailing" bytes immediately after a block whose literal run requests more bytes than the block contains. It asserts that decoding fails withMalformed input atand that no decompressed page is produced, rather than the block being completed from the trailing data.testCompressedBlockRejectsUnconsumedTrailingBytesdeclares acompressedLengthlarger than the sequence actually uses and asserts the exact messagestream corrupted: read N bytes, expected compressedLength(M).
The PR also adds the changelog entry docs/changelog/161345.yaml (area Infra/Core, type bug). The production change is small, 13 lines added and 1 removed in Lz4TransportDecompressor.java, and it does not change the wire format. Valid peers are unaffected, and only malformed or malicious blocks are rejected.
Interim exposure reduction
Elastic states there is no complete workaround and that temporary access controls do not replace upgrading. Until the upgrade is done, the advisory recommends:
- Keeping both node transport and remote cluster transport ports private.
- Enforcing mutual TLS on those ports.
- Restricting access to trusted source addresses.
The relevant settings documented by Elastic are:
| Interface | Allow setting | Deny setting |
|---|---|---|
| Node transport | xpack.security.transport.filter.allow | xpack.security.transport.filter.deny |
| Remote cluster transport | xpack.security.remote_cluster.filter.allow | xpack.security.remote_cluster.filter.deny |
Filtering on the remote cluster interface is also governed by xpack.security.transport.filter.enabled, so the two interfaces share the enabled state even though their allow and deny lists can differ. Elastic also notes that Elasticsearch is not designed to be publicly accessible over the Internet, and IP filtering does not change that.
For Elastic Cloud Hosted, Elastic deployed a proxy mitigation to all Hosted environments before disclosure. Elastic qualifies its coverage: it does not apply to self-managed deployments or to response-direction traffic, and customers on affected Hosted versions should still upgrade.
Affected systems and versions
The affected ranges appear in both Elastic's advisory and the CVE record. Fixed releases come from the advisory.
| Release family | Affected versions (inclusive) | Fixed release |
|---|---|---|
| 7.x | 7.14.0 through 7.17.29 | No fixed 7.x release listed |
| 8.x | 8.0.0 through 8.19.23 | 8.19.24 |
| 9.0 through 9.4 | 9.0.0 through 9.4.8 | 9.4.9 |
| 9.5.x | 9.5.0 through 9.5.5 | 9.5.6 |
Configuration notes:
- The vulnerable path is transport decompression of LZ4-compressed requests.
- An exposed remote cluster transport interface is explicitly exploitable without authentication.
- Node transport is included in Elastic's exposure reduction guidance.
- Elastic Cloud Hosted environments received a partial proxy mitigation that excludes response-direction traffic. Self-managed clusters received no such mitigation.
- The absence of a listed 7.x fix should not be read as a statement that affected 7.x installations are safe.
In practice, transport reachability and the exact installed version are better exposure indicators than the presence of ordinary application authentication.
Vendor security history
Elastic publishes Elastic Security Advisories that include an identifier, applicable CVEs, affected versions, remediation, mitigation details and CVSS ratings, and this advisory follows that pattern with exact ranges, fixed releases and explicit limits on interim protections. Elastic states that its secure software development framework is based on NIST 800 218 and that third parties penetration test Elastic Cloud at least annually. These are vendor-described practices, not guarantees.
A recent, unrelated example is CVE-2026-56144 (ESA-2026-56), an incorrect authorization issue in the ingest simulation feature. An authenticated user with limited index privileges could retrieve index mapping metadata for indices they could not access directly. It was fixed in 8.19.19, 9.3.8 and 9.4.4, with no workaround. The two issues failed at different security boundaries. CVE-2026-56144 was an authorization gap inside an authenticated feature, while CVE-2026-82303 is a decoder boundary failure reachable without authentication over remote cluster transport.
References
- NVD entry for CVE-2026-82303
- CVE Record for CVE-2026-82303
- Elastic advisory ESA-2026-cg7q-c6wj: Elasticsearch 8.19.24, 9.4.9, 9.5.6 Security Update
- elastic/elasticsearch PR 161345 on GitHub
- GitHub API: PR 161345 issue data
- GitHub API: PR 161345 changed files
- Elasticsearch 8.19.24 release notes
- Rapid7 Vulnerability Database entry
- Elastic advisory ESA-2026-56 (CVE-2026-56144)
- Product Security at Elastic
- Elastic Trust Center FAQ
- Elastic blog: 2026 Gartner Magic Quadrant for Enterprise AI Search
- About Elastic
- Elastic docs: Manage IP filtering in ECK and self managed clusters
- Elastic docs: Remote cluster filtering
- Elastic docs: Remote clusters



