Skip to content
Emerging threatsMedium

CVE-2021-22145Elasticsearch Out-of-Bounds Read

Generation of Error Message Containing Sensitive Information in Elasticsearch

Published Jul 21, 2021 · Updated Oct 24, 2026 · Also known as BIT-elasticsearch-2021-22145, GHSA-q394-h7f5-7f44, UBUNTU-CVE-2021-22145

Key Facts

Patch immediately
  • CVE-2021-22145 is a medium-severity vulnerability (CVSS 6.5 v3.1) affecting Elasticsearch, Communications Cloud Native Core Automated Test Suite (Oracle), org.elasticsearch.client:elasticsearch-rest-client (maven).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 76% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Elasticsearch <=7.13.3, Elasticsearch 7.13.4, org.elasticsearch.client:elasticsearch-rest-client 7.13.4.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

6.5

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

EPSS (30-day exploit likelihood)

76%

Higher than 99.5% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

51/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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.

Affected Products

6 affected entries in total
ProductAffected versionsFixed in
ElasticsearchElastic>= 7.10.07.13.3
Communications Cloud Native Core Automated Test SuiteOracle1.8.0n/a
org.elasticsearch.client:elasticsearch-rest-clientmaven>= 7.10.07.13.4

Patched Releases

Elasticsearch

<=7.13.3, 7.13.4

org.elasticsearch.client:elasticsearch-rest-client

7.13.4

Timeline

  1. Publicly disclosed

    Jul 21, 2021

  2. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-125 Out-of-bounds Read
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-209 Generation of Error Message Containing Sensitive Information

References

8 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-22145 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.