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

Published Oct 26, 2023
·
Updated

Elasticsearch could allow a local authenticated attacker to obtain sensitive information, caused by the insertion of sensitive information into the log files. By leveraging the deprecated xpack/security API, an attacker could exploit this vulnerability to obtain sensitive information, and use this information to launch further attacks against the affected system.

Other sources

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.

Affected Software

4 affected componentsFixes available
maven/org.elasticsearch:elasticsearch>=8.0.0<8.9.2
8.9.2
maven/org.elasticsearch:elasticsearch>=7.0.0<7.17.13
7.17.13
Elastic Elasticsearch>=7.0.0<=7.17.12
Elastic Elasticsearch>=8.0.0<=8.9.1

Event History

Oct 26, 2023
CVE Published
05:47 PM
Data Sourced
05:47 PM
DescriptionSeverityWeakness
Advisory Published
06:30 PM
Data Sourced
via GitHub·06:30 PM
DescriptionSeverityWeaknessAffected Software
Dec 13, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Elasticsearch vulnerability?

The vulnerability ID for this Elasticsearch vulnerability is CVE-2023-31417.

2

What is the title of this Elasticsearch vulnerability?

The title of this Elasticsearch vulnerability is 'Elasticsearch Insertion of sensitive information in audit logs'.

3

What is the impact of this Elasticsearch vulnerability?

The impact of this Elasticsearch vulnerability is the insertion of sensitive information, such as passwords, in audit logs.

4

Which software versions are affected by this Elasticsearch vulnerability?

Software versions between 8.0.0 and 8.9.2, and between 7.0.0 and 7.17.13 of the 'org.elasticsearch:elasticsearch' package are affected by this vulnerability.

5

What is the severity of this Elasticsearch vulnerability?

The severity of this Elasticsearch vulnerability is medium, with a severity value of 4.1.

6

How can I fix this Elasticsearch vulnerability?

To fix this Elasticsearch vulnerability, you should update the 'org.elasticsearch:elasticsearch' package to version 8.9.2 or 7.17.13, depending on the affected software version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203