Insertion of Sensitive Information into Log File The advisory has been revoked - it doesn't affect any version of package github.com/elastic/beats/v7/libbeat/processors/script/javascript  (opens in a new tab)


Threat Intelligence

EPSS
0.67% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMELASTICBEATSV7LIBBEATPROCESSORSSCRIPTJAVASCRIPT-6132137
  • published20 Dec 2023
  • disclosed12 Dec 2023
  • creditUnknown

Introduced: 12 Dec 2023

CVE-2023-49922  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade github.com/elastic/beats/v7/libbeat/processors/script/javascript to version 7.17.16 or higher.

Amendment

This was deemed not a vulnerability.

Overview

github.com/elastic/beats/v7/libbeat/processors/script/javascript is a lightweight shippers for Elasticsearch & Logstash

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File due to improper logging of sensitive information when handling failed event ingestions to Elasticsearch with certain HTTP status codes. An attacker can gain access to sensitive or private information by inducing the application to log events at the WARN or ERROR level.

Note: This vulnerability affects only the Beats application and Elastic Agent, when logging data from the Javascript runtime.

Workaround

This log line is logged at the WARN level; changing the log level to ERROR will suppress these logs. For Beats and standalone Elastic Agent the log level can be changed in the configuration file, see:

https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#level

https://www.elastic.co/guide/en/fleet/current/elastic-agent-standalone-logging-config.html