CVE Vulnerabilities

CVE-2023-31417

Insertion of Sensitive Information into Log File

Published: Oct 26, 2023 | Modified: Feb 13, 2025
CVSS 3.x
4.4
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
4.1 MODERATE
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

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.

Weakness

The product writes sensitive information to a log file.

Affected Software

Name Vendor Start Version End Version
Elasticsearch Elastic 7.0.0 (including) 7.17.12 (including)
Elasticsearch Elastic 8.0.0 (including) 8.9.1 (including)
Elasticsearch Ubuntu bionic *
Elasticsearch Ubuntu trusty *
Elasticsearch Ubuntu xenial *

Potential Mitigations

References