CVE-2021-22145
Generation of Error Message Containing Sensitive Information in Elasticsearch
Reported by elastic · Published July 21, 2021
elasticsearch-rest-client is fixed in 7.13.4 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.elasticsearch.client:elasticsearch-rest-client | Maven Central | 7.13.4 |
| elasticsearch | Bitnami | 7.13.4 |
| Elasticsearch | Elastic | 7.13.3 |
| elasticsearch | Bitnami | 7.13.4 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Elastic | Elasticsearch | 7.10.0 |
| Elastic | Elasticsearch | 7.10.0 |
Timeline
- Jul 21, 2021 CVE Published
- Jul 22, 2021 EPSS Score (30 in total, the first dated here)
- Jul 23, 2021 PoC Published (7 in total, the first dated here)
- Jul 8, 2025 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-22145
vulnetix vdb fixes CVE-2021-22145
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22145/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart