CVE-2021-22145: ElasticSearch - Information Disclosure
- Cve: CVE-2021-22145
- Name: ElasticSearch - Information Disclosure
- 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.
- Impact: Authenticated users can access sensitive data buffers, potentially leading to data leakage or unauthorized data access.
- Remediation: Update to the latest version beyond 7.13.3 or apply security patches provided by ElasticSearch.
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs ability to submit arbitrary queries
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.76249
- Epss percentile: 0.99545
- Assignee: [email protected]
- Published at: 2021-07-21T15:15:14Z
- Age in days: 1952
- Modified at: 2026-06-17T03:36:41Z
- Patch available: yes
- Public exploits total: 2
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22145
- Nvd status: modified
- Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
- Not known: vulnerability type
Cwe
| Id | Name |
|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor |
| CWE-209 | Generation of Error Message Containing Sensitive Information |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2021-22145 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22145.yaml |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html | nvd | 2021-07-21 |
| https://github.com/niceeeeeeee/CVE-2021-22145-poc | poc-in-github | 2023-08-31 |
References
| Url | Source | Tags |
|---|---|---|
| https://www.oracle.com/security-alerts/cpuapr2022.html | nvd | Patch, Third Party Advisory |
| https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177 | nvd | Vendor Advisory |
| http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html | nvd | Exploit, Third Party Advisory, VDB Entry |
| https://security.netapp.com/advisory/ntap-20210827-0006/ | nvd | Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22145.yaml | nuclei_template | Nuclei Template |
| https://gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| elastic:elasticsearch | >= 7.10.0, <= 7.13.3 | no | nvd | /v1/products/elastic/elasticsearch |
| oracle:communications_cloud_native_core_automated_test_suite | = 1.8.0 | no | nvd | /v1/products/oracle/communications_cloud_native_core_automated_test_suite |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| elastic/elasticsearch | package | yes | /v1/repositories/elastic/elasticsearch |
Index
- Repositories: 15
- Repositories high signal: 13
- Packages: 1
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2021-07-21
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 74440
- Checked, none or zero: known exploited, known exploited by, initial access
- Not known: known exploited since, vulncheck known exploited since, initial access since