CVE-2021-22145
Java vulnerability analysis and mitigation

Overview

A memory disclosure vulnerability was identified in Elasticsearch versions 7.10.0 to 7.13.3 error reporting. The vulnerability, tracked as CVE-2021-22145, was discovered by Eric Howard of Bell Canada and disclosed in July 2021. The vulnerability affects Elasticsearch installations and allows authenticated users with query permissions to potentially access sensitive information (Elastic Discussion).

Technical details

The vulnerability occurs in Elasticsearch's error reporting mechanism where a user with the ability to submit arbitrary queries could send a malformed query that triggers an error message containing previously used portions of a data buffer. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility, low attack complexity, and requiring low privileges (NVD).

Impact

The exposed data buffer could contain sensitive information such as Elasticsearch documents or authentication details. This information disclosure could potentially lead to unauthorized access to confidential data or authentication credentials (Elastic Discussion, NVD).

Exploitability

The vulnerability requires an attacker to have valid credentials with permission to submit queries to Elasticsearch. A Metasploit auxiliary module has been developed to exploit this vulnerability, which can be used to scan for and exploit vulnerable Elasticsearch instances (Rapid7 Blog).

Mitigation and workarounds

Users should upgrade their Elasticsearch installations to version 7.13.4 or later to address this vulnerability. There are no known workarounds for this issue other than upgrading to a patched version (Elastic Discussion).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73644CRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesAug 13, 2026
CVE-2026-73507HIGH7.5
  • Java logoJava
  • io.netty:netty-codec-xml
NoYesAug 13, 2026
CVE-2026-49989HIGH7.1
  • Java logoJava
  • io.crate:crate
NoYesAug 14, 2026
CVE-2026-53660HIGH7
  • Java logoJava
  • org.openidentityplatform.openam:openam-core
NoYesAug 14, 2026
CVE-2026-73508MEDIUM5.3
  • Java logoJava
  • keycloak-fips-26.7
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management