Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2021-22145: Memory Disclosure in Elasticsearch Error Reporting

Published Jul 21, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.5Medium · v3.1
EPSS76.2%100th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Oracle CorporationElastic
IdentifiersCVE-2021-22145CWE-125

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
ElasticElasticsearchapplication
Oracle CorporationCommunications Cloud Native Core Automated Test Suiteapplication
FAQ

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.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.