CVE-2021-22145
Generation of Error Message Containing Sensitive Information in Elasticsearch
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.elasticsearch.client » elasticsearch-rest-client | >= 7.10.0, < 7.13.4 | 7.13.4 |
Blast radius
42% of the dependent artifacts (234) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,287 |
| 2 hops | 4,442 |
| 3 hops | 3,144 |
| 4 hops | 10,485 |
| 5 hops | 221 |
| 6 hops | 42 |
Most used dependents
- org.elasticsearch.client » elasticsearch-rest-high-level-client684 usages
- org.elasticsearch.client » transport312 usages
- org.springframework.boot » spring-boot-starter-data-elasticsearch193 usages
- org.springframework.data » spring-data-elasticsearch126 usages
- org.apache.ranger » ranger-plugins-common98 usages
- org.elasticsearch.test » framework92 usages
- org.elasticsearch.client » elasticsearch-rest-client-sniffer84 usages
- org.apache.ranger » ranger-plugins-audit66 usages
- org.codelibs » elasticsearch-cluster-runner66 usages
- ca.uhn.hapi.fhir » hapi-fhir-validation63 usages
- com.sksamuel.elastic4s » elastic4s-testkit41 usages
- ca.uhn.hapi.fhir » hapi-fhir-jpaserver-base37 usages
- org.codelibs.fess » fess35 usages
- com.therealvan » appender-log4j229 usages
- com.sksamuel.elastic4s » elastic4s-client-esjava28 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-22145 | nvd.nist.gov |
| Package | elastic/elasticsearch | github.com |
| Web | t/elasticsearch-7-13-4-security-update/279177 | discuss.elastic.co |
| Web | lucasdrufva/f9c5d7c9e26ee087b736d727953afd34 | gist.github.com |
| Web | advisory/ntap-20210827-0006 | security.netapp.com |
| Web | security-alerts/cpuapr2022.html | oracle.com |
| Web | files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html | packetstormsecurity.com |
