CVE-2023-31417
mediumpriority · track · 18EPSS 0.002 · 15 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2276Elasticsearch: Schwachstelle ermöglicht Offenlegung von InformationenDeutsch2023-09-06csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in Elasticsearch ausnutzen, um Informationen offenzulegen.
- GHSA-99pc-69q9-jxf2Elasticsearch allows insertion of sensitive information into log files when using deprecated URIs2023-10-26ghsa · osvUS
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`
- BIT-elasticsearch-2023-31417Elasticsearch Insertion of sensitive information in audit logs2024-03-06vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-31417/cnnvd
- https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479cnnvd
- https://security.netapp.com/advisory/ntap-20231130-0006/cnnvd
- https://www.elastic.co/community/securitycnnvd
- https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479enisa_euvd
- https://security.netapp.com/advisory/ntap-20231130-0006/enisa_euvd
- https://www.elastic.co/community/securityenisa_euvd
- https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan