CVE-2021-22145: Generation of Error Message Containing Sensitive Information in Elasticsearch
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98169%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.elasticsearch.client:elasticsearch-rest-client | maven | >= 7.10.0, <= 7.13.3 | 7.13.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability involves error messages exposing residual data from reused buffers. The RestClient's error handling mechanism (parseResponseException) is responsible for reading HTTP response content and generating exceptions. In affected versions, this function likely included uncleared buffer data in error messages when parsing malformed queries. The patch in 7.13.4 would address this by ensuring proper buffer sanitization or truncation during error message construction.