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 elasticsearchnot affected: vulnerable code not present
+8 more productsfewer
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
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
- First public exploit (Metasploit auxiliary/scanner/http/elasticsearch_memory_disclosure)
- 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
- Metasploit auxiliary/scanner/http/elasticsearch_memory_disclosure Elasticsearch Memory Disclosure metasploit auxiliary, normal rank, 2021-07-21
- EDB-50149 ElasticSearch 7.13.3 - Memory disclosure webapps, 2021-07-23
- Nuclei template Elasticsearch 7.10.0-7.13.3 - Information Disclosure nuclei detection template
- packetstormsecurity.com http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html referenced PoC, tagged "exploit" by a source, unverified
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
References
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory, advisory
-
packetstormsecurity.com
/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html
web, exploit, third-party-advisory, vdb-entry, advisory
-
discuss.elastic.co
/t/elasticsearch-7-13-4-security-update/279177
web, vendor-advisory, advisory
-
security.netapp.com
/advisory/ntap-20210827-0006/
third-party-advisory, advisory
-
gist.github.com
/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34
technical-description, web
-
nvd.nist.gov
/vuln/detail/CVE-2021-22145
advisory, web
-
github.com
/elastic/elasticsearch
package
-
security.netapp.com
/advisory/ntap-20210827-0006
web
Sources
- CVE List CVE-2021-22145
- GitHub Advisory GHSA-q394-h7f5-7f44
- NVD CVE-2021-22145
- OSV BIT-elasticsearch-2021-22145
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.