Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.elasticsearch.client/elasticsearch-rest-client
  4. ›
  5. CVE-2021-22145

CVE-2021-22145: Generation of Error Message Containing Sensitive Information in Elasticsearch

May 24, 2022 (updated July 9, 2025)

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.

References

  • discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177
  • gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34
  • github.com/advisories/GHSA-q394-h7f5-7f44
  • github.com/elastic/elasticsearch
  • nvd.nist.gov/vuln/detail/CVE-2021-22145
  • security.netapp.com/advisory/ntap-20210827-0006
  • www.oracle.com/security-alerts/cpuapr2022.html

Code Behaviors & Features

Detect and mitigate CVE-2021-22145 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 7.10.0 before 7.13.4

Fixed versions

  • 7.13.4

Solution

Upgrade to version 7.13.4 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-209: Generation of Error Message Containing Sensitive Information

Source file

maven/org.elasticsearch.client/elasticsearch-rest-client/CVE-2021-22145.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:53 +0000.