CVE-2021-22145
Generation of Error Message Containing Sensitive Information in Elasticsearch
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2021-22145- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:P/I:N/A:N - Weakness
- CWE-200, CWE-209
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-22145- Weakness
- CWE-200
- Updated
- 2026-11-02
EUVDEUVD-2022-4866 No score
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.
- Record
EUVD-2022-4866- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-q394-h7f5-7f44
6.5
Generation of Error Message Containing Sensitive Information in Elasticsearch
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.
- Record
GHSA-q394-h7f5-7f44- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-209
- Updated
- 2026-11-02
OSV
6.5
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.
- Record
CVE-2021-22145- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVGHSA-q394-h7f5-7f44
6.5
Generation of Error Message Containing Sensitive Information in Elasticsearch
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.
- Record
GHSA-q394-h7f5-7f44- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-209
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-22145
6.5
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.
- Record
UBUNTU-CVE-2021-22145- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVBIT-elasticsearch-2021-22145 No score
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.
- Record
BIT-elasticsearch-2021-22145- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.elasticsearch.client:elasticsearch-rest-clientMaven |
7.10.0 to 7.13.3 | 7.13.4 |
elasticsearchBitnami |
7.10.0 up to 7.13.4 | 7.13.4 |
org.elasticsearch.client:elasticsearch-rest-clientMaven |
7.10.0 up to 7.13.4, plus listed versions 7.10.17.10.27.11.07.11.17.11.2 Show 6 moreShow less7.12.07.12.17.13.07.13.17.13.27.13.3 |
7.13.4 |
elasticsearchUbuntu:16.04:LTS |
All versions, plus listed versions 1.6.2+dfsg-11.7.3+dfsg-11.7.3+dfsg-21.7.3+dfsg-3 |
None known |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | ElasticSearch 7.13.3 - Memory disclosure | 2021-07-23 |
| Metasploit | Elasticsearch Memory Disclosure | 2021-07-21 |
| Nuclei | Elasticsearch 7.10.0-7.13.3 - Information Disclosure | |
| PoC in GitHub | niceeeeeeee/CVE-2021-22145-poc | 2023-08-31 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, Exploit-DB, GitHub Advisories, Metasploit, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-22145 is a medium vulnerability (CVSS 6.5) in Elastic Elasticsearch, published July 21, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 76.2%, the 99th percentile. Fixed in org.elasticsearch.client:elasticsearch-rest-client 7.13.4.
References
oracle.com/security-alerts/cpuapr2022.html
security.netapp.com/advisory/ntap-20210827-0006
discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177
packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html
gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34
nvd.nist.gov/vuln/detail/CVE-2021-22145