Memory Disclosure in Elasticsearch Error Reporting
CVE-2021-22145 is a memory disclosure vulnerability in Elasticsearch versions 7.10.0 through 7.13.3. The flaw exists in the error reporting mechanism, where a user able to submit arbitrary queries can craft a malformed query that triggers an error message leaking previously used portions of a data buffer. This buffer may contain sensitive information, including Elasticsearch documents or authentication details. The vulnerability is classified as CWE-125: Out-of-bounds Read.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Exploitation of this vulnerability allows an attacker with the ability to submit arbitrary queries to Elasticsearch to obtain sensitive information from memory, such as document contents or authentication credentials. In Elastic Cloud Enterprise (ECE) deployments, the vulnerability may also allow privilege escalation for ECE users. The CVSSv3 score is up to 8.0, indicating a high impact on confidentiality.
If you can’t patch tonight, do this now.
There is no known workaround for this vulnerability. Mitigation is only possible by upgrading to a fixed version and, for ECE, by restricting access to affected clusters and following Elastic's published remediation guidance.
Patch, then assume compromise.
Upgrade Elasticsearch to version 7.13.4 or later. For Elastic Cloud Enterprise (ECE) deployments, follow Elastic's version-specific remediation steps, including upgrading non-system clusters, reinstalling stack packs, and revoking non-admin user access to affected system clusters as appropriate. For ECE Security system clusters, upgrade to ECE 2.10+ or apply a block-all IP filter.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.