CVE-2021-22145: Memory Disclosure in Elasticsearch Error Reporting
- Vendors
- Oracle CorporationElastic
CVE-2021-22145 is a memory disclosure vulnerability in Elasticsearch versions 7.10.0 through 7.13.3. The flaw exists in the error reporting mechanism, where a user able to submit arbitrary queries can craft a malformed query that triggers an error message leaking previously used portions of a data buffer. This buffer may contain sensitive information, including Elasticsearch documents or authentication details. The vulnerability is classified as CWE-125: Out-of-bounds Read.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation of this vulnerability allows an attacker with the ability to submit arbitrary queries to Elasticsearch to obtain sensitive information from memory, such as document contents or authentication credentials. In Elastic Cloud Enterprise (ECE) deployments, the vulnerability may also allow privilege escalation for ECE users. The CVSSv3 score is up to 8.0, indicating a high impact on confidentiality.
Mitigation
If you can’t patch tonight, do this now.
There is no known workaround for this vulnerability. Mitigation is only possible by upgrading to a fixed version and, for ECE, by restricting access to affected clusters and following Elastic's published remediation guidance.
Remediation
Patch, then assume compromise.
Upgrade Elasticsearch to version 7.13.4 or later. For Elastic Cloud Enterprise (ECE) deployments, follow Elastic's version-specific remediation steps, including upgrading non-system clusters, reinstalling stack packs, and revoking non-admin user access to affected system clusters as appropriate. For ECE Security system clusters, upgrade to ECE 2.10+ or apply a block-all IP filter.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-22145 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-22145 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-22145?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-22145, the earliest disclosed Jul 21, 2021.
- Is there a patch for CVE-2021-22145?
- Upgrade Elasticsearch to version 7.13.4 or later. For Elastic Cloud Enterprise (ECE) deployments, follow Elastic's version-specific remediation steps, including upgrading non-system clusters, reinstalling stack packs, and revoking non-admin user access to affected system clusters as appropriate.
- What products are affected by CVE-2021-22145?
- Elasticsearch and Oracle Corporation Communications Cloud Native Core Automated Test Suite.
- How severe is CVE-2021-22145?
- CVE-2021-22145 has a CVSS v3.1 score of 6.5 (Medium) and an EPSS score of 76.2% (100th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.