Information Exposure Affecting github.com/grafana/agent/cmd/agent package, versions <0.20.1>=0.21.0 <0.21.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.74% (73rd 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 IDSNYK-GOLANG-GITHUBCOMGRAFANAAGENTCMDAGENT-2313645
  • published9 Dec 2021
  • disclosed9 Dec 2021
  • creditUnknown

Introduced: 9 Dec 2021

CVE-2021-41090  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/grafana/agent/cmd/agent to version 0.20.1, 0.21.2 or higher.

Overview

github.com/grafana/agent/cmd/agent is a Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack.

Affected versions of this package are vulnerable to Information Exposure via inline secrets defined within a metrics instance config, which are exposed in plaintext over two endpoints: metrics instance configs defined in the base YAML file are exposed at /-/config and metrics instance configs defined for the scraping service are exposed at /agent/api/v1/configs/:key. Inline secrets will be exposed to anyone being able to reach these endpoints. If HTTPS with client authentication is not configured, these endpoints are accessible to unauthenticated users. This does not apply for non-inlined secrets, such as *_file based secrets.

CVSS Base Scores

version 3.1