Skip to main content
Public proof of conceptFix available

CVE-2021-22145

A public proof of concept exists; no exploitation attested.

  • Published2021-07-21
  • WeaknessCWE-200 · CWE-209

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-07-2115:15CVE publishedNVD
  2. 2021-07-23Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
Elasticsearch
BranchAffectedFixed in
7.x≥ 7.10.0, ≤ 7.13.3no fix published
elasticsearch
BranchAffectedFixed in
7.x≥ 7.10.0, < 7.13.47.13.4
Oracle communications cloud native core automated test suite
BranchAffectedFixed in
1.8= 1.8.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • elasticsearchUbuntu:16.04:LTSall versions · no fixed version listed

Vendor advisories

  • CVE-2021-22145 Red Hat Product Security

    elasticsearch: memory disclosure in error reporting

Full record on NVD

Fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-50149
Exploit-DB
Proof of concept
Metasploit modules
1 moduleauxiliary/scanner/http/elasticsearch_memory_disclosurerank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
2021-07-21
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-q394-h7f5-7f44

Frequently asked questions

What is CVE-2021-22145?

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.

Is CVE-2021-22145 actively exploited?

Active exploitation of CVE-2021-22145 has not been confirmed. Its EPSS score was 76.2% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-22145?

CVE-2021-22145 has a CVSS v3 base score of 6.5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Running Elasticsearch? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record