Miggo Logo

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

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.98169%
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.elasticsearch.client:elasticsearch-rest-clientmaven>= 7.10.0, <= 7.13.37.13.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* m*mory *is*losur* vuln*r**ility w*s i**nti*i** in *l*sti*s**r** *.**.* to *.**.* *rror r*portin*. * us*r wit* t** **ility to su*mit *r*itr*ry qu*ri*s to *l*sti*s**r** *oul* su*mit * m*l*orm** qu*ry t**t woul* r*sult in *n *rror m*ss*** r*turn** *on

Reasoning

T** vuln*r**ility involv*s *rror m*ss***s *xposin* r*si*u*l **t* *rom r*us** *u***rs. T** R*st*li*nt's *rror **n*lin* m****nism (p*rs*R*spons**x**ption) is r*sponsi*l* *or r***in* *TTP r*spons* *ont*nt *n* **n*r*tin* *x**ptions. In *****t** v*rsions,