# CVE-2023-31417: Elasticsearch Insertion of sensitive information in audit logs

- Severity: Medium 4.1 (CVSS:3.1, scored by elastic) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2023-10-26T17:47:37.065Z
- Modified: 2026-09-08T08:47:12.368Z
- Also known as: GHSA-99pc-69q9-jxf2, BIT-ELASTICSEARCH-2023-31417
- Weaknesses: CWE-532
- Assigned by: elastic

## Description

Elasticsearch generally filters out sensitive information and credentials before logging to the audit log. It was found that this filtering was not applied when requests to Elasticsearch use certain deprecated URIs for APIs. The impact of this flaw is that sensitive information such as passwords and tokens might be printed in cleartext in Elasticsearch audit logs. Note that audit logging is disabled by default and needs to be explicitly enabled and even when audit logging is enabled, request bodies that could contain sensitive information are not printed to the audit log unless explicitly configured.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: from 7.0.0 before 7.17.12; from 8.0.0 before 8.9.1; from 7.0.0 up to 7.17.12; from 8.0.0 up to 8.9.1
- org.elasticsearch:elasticsearch (Maven): from 7.0.0 before 7.17.13; from 8.0.0 before 8.9.2
- elasticsearch (Bitnami): from 7.0.0 before 7.17.13; from 8.0.0 before 8.9.2

## Every score

- elastic: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479> (advisory, vendor-advisory, web)
- <https://www.elastic.co/community/security> (advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20231130-0006/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31417> (advisory, web)
- <https://security.netapp.com/advisory/ntap-20231130-0006> (web)

## Sources

- CVE List: [CVE-2023-31417](https://www.cve.org/CVERecord?id=CVE-2023-31417), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-99pc-69q9-jxf2](https://github.com/advisories/GHSA-99pc-69q9-jxf2), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2023-31417](https://nvd.nist.gov/vuln/detail/CVE-2023-31417), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ELASTICSEARCH-2023-31417](https://osv.dev/vulnerability/BIT-ELASTICSEARCH-2023-31417), Apache-2.0, modified 2026-09-08

---

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