# CVE-2023-49921: Elasticsearch Insertion of Sensitive Information into Log File

- Severity: Medium 5.2 (CVSS:3.1, scored by elastic) `CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-07-26T05:10:33.913Z
- Modified: 2026-09-08T08:47:14.384Z
- Also known as: GHSA-2hjr-vmf3-xwvp, BIT-ELASTICSEARCH-2023-49921
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: elastic

## 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.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: from 7.0.0 before 7.17.16; from 8.0.0 before 8.11.2
- org.elasticsearch:elasticsearch (Maven): before 7.17.16; from 8.0.0 before 8.11.2
- elasticsearch (Bitnami): from 7.0.0 before 7.17.16; from 8.0.0 before 8.11.2

## Every score

- elastic: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://discuss.elastic.co/t/elasticsearch-8-11-2-7-17-16-security-update-esa-2023-29/349179> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49921> (advisory, web)
- <https://github.com/elastic/elasticsearch> (package)

## Sources

- CVE List: [CVE-2023-49921](https://www.cve.org/CVERecord?id=CVE-2023-49921), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-2hjr-vmf3-xwvp](https://github.com/advisories/GHSA-2hjr-vmf3-xwvp), CC-BY-4.0, modified 2024-07-31
- NVD: [CVE-2023-49921](https://nvd.nist.gov/vuln/detail/CVE-2023-49921), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ELASTICSEARCH-2023-49921](https://osv.dev/vulnerability/BIT-ELASTICSEARCH-2023-49921), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-49921 · Whole record: https://cve.day/CVE-2023-49921.json · Rebuilt by cve.day 2026-11-25T22:58:34.234Z
