Skip to content
Fencer Vulns
medium 6.5

CVE-2021-22145 json

Generation of Error Message Containing Sensitive Information in Elasticsearch

published 2021-07-21 5 y ago modified 2026-09-08 2 mo ago also BIT-elasticsearch-2021-22145 , EUVD-2022-4866 , GHSA-q394-h7f5-7f44

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
76.2%
EPSS 76.2% chance of exploitation in 30 days, percentile 99.5%
public exploits
2
Metasploit, Exploit-DB, plus a Nuclei check

Summary

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. A user with the ability to submit arbitrary queries to Elasticsearch could submit a malformed query that would result in an error message returned containing previously used portions of a data buffer. This buffer could contain sensitive information such as Elasticsearch documents or authentication details.

Patch / fix

  • maven org.elasticsearch.client:elasticsearch-rest-client 7.13.4
  • bitnami elasticsearch 7.13.4

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-22145 updated cvss 7.3

elasticsearch: memory disclosure in error reporting

  • Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/elasticsearch6-rhel8 Red Hat OpenShift Service Mesh 1 servicemesh-grafana, servicemesh-grafana-prometheus Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-grafana-prometheus Red Hat Decision Manager 7 elasticsearch Red Hat Fuse 7 elasticsearch Red Hat Integration Camel K 1 elasticsearch
    +8 more products
    Red Hat JBoss Data Grid 6 elasticsearch Red Hat JBoss Fuse 6 elasticsearch Red Hat JBoss Fuse Service Works 6 elasticsearch Red Hat OpenShift Container Platform 3.11 openshift3/ose-logging-elasticsearch5 Red Hat OpenShift Container Platform 4 openshift4/ose-logging-elasticsearch6 Red Hat OpenStack Platform 10 (Newton) python-elasticsearch Red Hat Process Automation 7 elasticsearch Red Hat Quay 3 quay/quay-rhel8
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (Metasploit auxiliary/scanner/http/elasticsearch_memory_disclosure)
  2. Published

Exploit prediction

76.25% chance of exploitation in the next 30 days, higher than 99.5% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

CVSS scores

assigned by version score vector
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:P/I:N/A:N
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.elasticsearch.client:elasticsearch-rest-client
>=7.10.0, <7.13.4
7.13.4
bitnami elasticsearch
>=7.10.0, <7.13.4
7.13.4

Affected products

  • Elastic Elasticsearch

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-209 Generation of Error Message Containing Sensitive Information

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.