CVE-2021-22145A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. A user with the ability to submit…
- 6.5MediumCVSS base score
- 76.2%Exploitation in 30 daysEPSS · top 0.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and an Exploit-DB entry for it.
Show the exploits3
Metasploit modules1 module
- Elasticsearch Memory Disclosure (Metasploit module) (opens in a new tab)
auxiliary/scanner/http/elasticsearch_memory_disclosureRank normaldisclosed 21 Jul 2021
Nuclei templates1 template
- Elasticsearch 7.10.0-7.13.3 - Information Disclosure (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-22145.yamlSeverity medium
Exploit-DB1 entry
- ElasticSearch 7.13.3 - Memory disclosure (Exploit-DB entry) (opens in a new tab)
EDB-ID 50149webapps, multiplepublished 23 Jul 2021Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By elastic
- 7 months later
· 7 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 76.2% · top 0.5% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Affected products
- affected 7.10.0 – ≤ 7.13.3
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.elasticsearch.client:elasticsearch-rest-clientGHSA-q394-h7f5-7f44 (opens in a new tab)
References
References5
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20210827-0006/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177 (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html (opens in a new tab)x_refsource_MISCx_transferred
- https://gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34 (opens in a new tab)technical-description
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-4866 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-q394-h7f5-7f44 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-22145)Record last updated .