{"id":"GHSA-q394-h7f5-7f44","summary":"Generation of Error Message Containing Sensitive Information in Elasticsearch","details":"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.","aliases":["BIT-elasticsearch-2021-22145","CVE-2021-22145"],"modified":"2025-07-09T15:17:37.961672Z","published":"2022-05-24T19:08:49Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-22T18:23:29Z","nvd_published_at":"2021-07-21T15:15:00Z","cwe_ids":["CWE-200","CWE-209"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22145"},{"type":"WEB","url":"https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177"},{"type":"WEB","url":"https://gist.github.com/lucasdrufva/f9c5d7c9e26ee087b736d727953afd34"},{"type":"PACKAGE","url":"https://github.com/elastic/elasticsearch"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210827-0006"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"WEB","url":"http://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html"}],"affected":[{"package":{"name":"org.elasticsearch.client:elasticsearch-rest-client","ecosystem":"Maven","purl":"pkg:maven/org.elasticsearch.client/elasticsearch-rest-client"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.10.0"},{"fixed":"7.13.4"}]}],"versions":["7.10.0","7.10.1","7.10.2","7.11.0","7.11.1","7.11.2","7.12.0","7.12.1","7.13.0","7.13.1","7.13.2","7.13.3"],"database_specific":{"last_known_affected_version_range":"\u003c= 7.13.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-q394-h7f5-7f44/GHSA-q394-h7f5-7f44.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}