4.1medium
Elasticsearch Insertion of sensitive information in audit logs
- Severity
- 4.1medium CVSS:3.1 by elastic
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- elastic
- Also known as
- GHSA-99pc-69q9-jxf2BIT-ELASTICSEARCH-2023-31417
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List, NVD |
| org.elasticsearch:elasticsearch (Maven) | from 7.0.0 before 7.17.13, from 8.0.0 before 8.9.2 | GitHub Advisory Database |
| elasticsearch (Bitnami) | from 7.0.0 before 7.17.13, from 8.0.0 before 8.9.2 | Bitnami Vulnerability Database |
All scores
| elastic | 4.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 4.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
Elasticsearch generalmente filtra la información y las credenciales confidenciales antes de iniciar sesión en el registro de auditoría. Se descubrió que este filtrado no se aplicaba cuando las solicitudes a Elasticsearch utilizan ciertos URI obsoletos para las API. El impacto de esta falla es que la información confidencial, como contraseñas y tokens, puede imprimirse en texto plano en los registros de auditoría de Elasticsearch. Tenga en cuenta que el registro de auditoría está deshabilitado de forma predeterminada y debe habilitarse explícitamente e incluso cuando el registro de auditoría está habilitado, los cuerpos de solicitud que podrían contener información confidencial no se imprimen en el registro de auditoría a menos que se configure explícitamente.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-31417 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-99pc-69q9-jxf2 changed 2025-02-13 | CC-BY-4.0 |
| NVD | CVE-2023-31417 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-ELASTICSEARCH-2023-31417 changed 2026-09-08 | Apache-2.0 |