Medium

Elasticsearch allows insertion of sensitive information into log files when using deprecated URIs

  • Disclosed: 26.10.2023
  • Updated: 11.10.2026 12:21

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.

The _xpack/security APIs have been deprecated in Elasticsearch 7.x and were entirely removed in 8.0.0 and later. The only way for a client to use them in Elasticsearch 8.0.0 and later is to provide the Accept: application/json; compatible-with=7 header. Elasticsearch official clients do not use these deprecated APIs.

The list of affected, deprecated APIs, is the following:

POST /_xpack/security/user/{username} PUT /_xpack/security/user/{username} PUT /_xpack/security/user/{username}/_password POST /_xpack/security/user/{username}/_password PUT /_xpack/security/user/_password POST /_xpack/security/user/_password POST /_xpack/security/oauth2/token DELETE /_xpack/security/oauth2/token POST /_xpack/security/saml/authenticate

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.elasticsearch:elasticsearch >= 7.0.0, < 7.17.13, >= 8.0.0, < 8.9.2 7.17.13, 8.9.2

References

CVSS score 4.1/10
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-532
Platform
Java / Kotlin (Maven)
Package
org.elasticsearch:elasticsearch
Disclosed
26.10.2023
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-99pc-69q9-jxf2 - CC BY 4.0

Vulnerability history: org.elasticsearch:elasticsearch

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (40) in the archive
Total entries
40
First → latest
03.2021 05.2025
Without a fix
0
Exploited in attacks
2

Severity breakdown

  • High 8
  • Medium 31
  • Low 1

Disclosures per year

  1. 2021: 7
  2. 2022: 19
  3. 2023: 4
  4. 2024: 7
  5. 2025: 3
  6. 2026: 0
Severity:
  1. High · 7.5 CVE-2023-31418 < 7.17.13, >= 8.0.0, < 8.9.0 7.17.13, 8.9.0
  2. Elasticsearch allows insertion of sensitive information into log files when using deprecated URIs this entry
    Medium · 4.1 CVE-2023-31417 >= 7.0.0, < 7.17.13, >= 8.0.0, < 8.9.2 7.17.13, 8.9.2
  3. High · 7.5 CVE-2022-23712 >= 8.0.0, < 8.2.1 8.2.1
  4. High · 8.8 CVE-2020-7009 >= 6.7.0, < 6.8.8, >= 7.0.0, < 7.6.2 6.8.8, 7.6.2
  5. High · 8.1 Exploited in attacks CVE-2014-3120 < 1.4.0.Beta1 1.4.0.Beta1
  6. High Exploited in attacks CVE-2015-1427 < 1.3.8, >= 1.4.0, < 1.4.3 1.3.8, 1.4.3
  7. High · 7.5 CVE-2015-4165 < 1.6.0 1.6.0
  8. High · 8.8 CVE-2018-3831 >= 5.6.0, < 5.6.12, >= 6.0.0, < 6.4.1 5.6.12, 6.4.1
  9. High · 8.1 CVE-2019-7611 < 5.6.15, >= 6.0.0, < 6.6.1 5.6.15, 6.6.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.