# CVE-2021-22145: Generation of Error Message Containing Sensitive Information in Elasticsearch

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 76.2%, higher than 100% of CVEs (2026-11-27)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-21T11:20:52.000Z
- Modified: 2026-09-08T08:46:27.940Z
- Also known as: GHSA-q394-h7f5-7f44, BIT-ELASTICSEARCH-2021-22145
- Weaknesses: CWE-200, CWE-209
- Assigned by: elastic

## Description

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.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: from 7.10.0 up to 7.13.3
- org.elasticsearch.client:elasticsearch-rest-client (Maven): from 7.10.0 before 7.13.4
- oracle communications_cloud_native_core_automated_test_suite: 1.8.0
- elasticsearch (Bitnami): from 7.10.0 before 7.13.4

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html> (exploit, advisory, third-party-advisory, vdb-entry, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (advisory, patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210827-0006/> (advisory, third-party-advisory)
- <https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177> (advisory, vendor-advisory, web)
- <https://gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34> (technical-description, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22145> (advisory, web)
- <https://github.com/elastic/elasticsearch> (package)
- <https://security.netapp.com/advisory/ntap-20210827-0006> (web)

## Sources

- CVE List: [CVE-2021-22145](https://www.cve.org/CVERecord?id=CVE-2021-22145), CVE Terms of Use, modified 2025-07-08
- GitHub Advisory Database: [GHSA-q394-h7f5-7f44](https://github.com/advisories/GHSA-q394-h7f5-7f44), CC-BY-4.0, modified 2025-07-09
- NVD: [CVE-2021-22145](https://nvd.nist.gov/vuln/detail/CVE-2021-22145), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ELASTICSEARCH-2021-22145](https://osv.dev/vulnerability/BIT-ELASTICSEARCH-2021-22145), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-22145 · Whole record: https://cve.day/CVE-2021-22145.json · Rebuilt by cve.day 2026-11-25T22:58:02.758Z
