Elasticsearch Insertion of Sensitive Information into Log File (ESA-2023-29)
An issue was discovered by Elastic whereby Watcher search input logged the search query results on DEBUG log level. This could lead to raw contents of documents stored in Elasticsearch to be printed in logs. Elastic has released 8.11.2 and 7.17.16 that resolves this issue by removing this excessive logging.
Affected Versions
Elasticsearch versions on or after 7.0.0 and before 7.17.16.
Elasticsearch versions on or after 8.0.0 and before 8.11.2.
Affected Configurations:
This issue only affects users that use Watcher and have a Watch defined that uses the search input and additionally have set the search input’s logger to DEBUG or finer, for example using:
org.elasticsearch.xpack.watcher.input.search
,
org.elasticsearch.xpack.watcher.input
,
org.elasticsearch.xpack.watcher
,
or wider, since the loggers are hierarchical.
Solutions and Mitigations:
The issue is resolved in version 7.17.16 and 8.11.2
For users that cannot upgrade, if you are using Watcher with search input logger set to DEBUG, the logging level can be set to INFO or higher (WARN, ERROR).
Severity:
CVSSv3: 5.2(Medium) - AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
CVE ID: CVE-2023-49921