Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Instance config inline secret exposure

CVSS 3.1 6.5 MEDIUMEUVD CVSS 3.1 6.5 CVSS 3.1 · [email protected] · Secondary 6.5 MEDIUMCVSS 3.1 · [email protected] · Primary 7.5 HIGHCVSS 2.0 · [email protected] · Primary 4.3 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by github.com/grafana/agent 0.21.2osv · severity unknownFixed by github.com/grafana/agent 0.21.2KEV status unknown

cve-program · CVE-2021-41090

Published

Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack. Prior to versions 0.20.1 and 0.21.2, inline secrets defined within a metrics instance config 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. Secrets found in these sections are used for delivering metrics to a Prometheus Remote Write system, authenticating against a system for discovering Prometheus targets, and authenticating against a system for collecting metrics. This does not apply for non-inlined secrets, such as `*_file` based secrets. This issue is patched in Grafana Agent versions 0.20.1 and 0.21.2. A few workarounds are available. Users who cannot upgrade should use non-inline secrets where possible. Users may also desire to restrict API access to Grafana Agent with some combination of restricting the network interfaces Grafana Agent listens on through `http_listen_address` in the `server` block, configuring Grafana Agent to use HTTPS with client authentication, and/or using firewall rules to restrict external access to Grafana Agent's API.

Read the publisher's advisory

euvd · EUVD-2021-2493

Published

Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack. Prior to versions 0.20.1 and 0.21.2, inline secrets defined within a metrics instance config 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. Secrets found in these sections are used for delivering metrics to a Prometheus Remote Write system, authenticating against a system for discovering Prometheus targets, and authenticating against a system for collecting metrics. This does not apply for non-inlined secrets, such as `*_file` based secrets. This issue is patched in Grafana Agent versions 0.20.1 and 0.21.2. A few workarounds are available. Users who cannot upgrade should use non-inline secrets where possible. Users may also desire to restrict API access to Grafana Agent with some combination of restricting the network interfaces Grafana Agent listens on through `http_listen_address` in the `server` block, configuring Grafana Agent to use HTTPS with client authentication, and/or using firewall rules to restrict external access to Grafana Agent's API.

Read the publisher's advisory

nvd · CVE-2021-41090

Published

Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack. Prior to versions 0.20.1 and 0.21.2, inline secrets defined within a metrics instance config 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. Secrets found in these sections are used for delivering metrics to a Prometheus Remote Write system, authenticating against a system for discovering Prometheus targets, and authenticating against a system for collecting metrics. This does not apply for non-inlined secrets, such as `*_file` based secrets. This issue is patched in Grafana Agent versions 0.20.1 and 0.21.2. A few workarounds are available. Users who cannot upgrade should use non-inline secrets where possible. Users may also desire to restrict API access to Grafana Agent with some combination of restricting the network interfaces Grafana Agent listens on through `http_listen_address` in the `server` block, configuring Grafana Agent to use HTTPS with client authentication, and/or using firewall rules to restrict external access to Grafana Agent's API.

Read the publisher's advisory

osv · GHSA-9c4x-5hgq-q3wh

Published

### Impact Some inline secrets are exposed in plaintext over the Grafana Agent HTTP server: * Inline secrets for metrics instance configs in the base YAML file are exposed at `/-/config` * Inline secrets for integrations are exposed at `/-/config` * Inline secrets for Consul ACL tokens and ETCD basic auth when configured for the scraping service at `/-/config`. * Inline secrets for the Kafka receiver for OpenTelemetry-Collector tracing at `/-/config`. * Inline secrets for metrics instance configs loaded from the scraping service are exposed at `/agent/api/v1/configs/{name}`. Inline secrets will be exposed to anyone being able to reach these endpoints. Secrets found in these sections are used for: * Delivering metrics to a Prometheus Remote Write system * Authenticating against a system for discovering Prometheus targets * Authenticating against a system for collecting metrics (scrape_configs and integrations) * Authenticating against a Consul or ETCD for storing configurations to distribute in scraping service mode * Authenticating against Kafka for receiving traces Non-inlined secrets, such as `*_file`-based secrets, are not impacted by this vulnerability. ### Patches Download [v0.20.1](https://github.com/grafana/agent/releases/tag/v0.20.1) or any version past [v0.21.2](https://github.com/grafana/agent/releases/tag/v0.21.2) to patch Grafana Agent. These patches obfuscate the listed impacted secrets from the vulnerable endpoints. The patches also disable the endpoints by default. Pass the command-line flag `--config.enable-read-api` to opt-in and re-enable the endpoints. ### Workarounds If for some reason you cannot upgrade, use non-inline secrets where possible. Not all configuration options may have a non-inline equivalent. You also may desire to restrict API access to Grafana Agent, with some combination of: * Restrict network interfaces Grafana Agent listens on through `http_listen_address` in the `server` block. `127.0.0.1` is the most restrictive, `0.0.0.0` is the default. * Configure Grafana Agent to use HTTPS with client authentication. * Use firewall rules to restrict external access to Grafana Agent's API.

Read the publisher's advisory

osv · GO-2022-0305

Published

Instance config inline secret exposure in Grafana in github.com/grafana/agent

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2021-41090

Published

agent

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "agent",
                    "vendor": "grafana",
                    "versions": [
                        {
                            "status": "affected",
                            "version": ">= 0.14.0, < 0.20.1"
                        },
                        {
                            "status": "affected",
                            "version": ">= 0.21.0, < 0.21.2"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2021-2493

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Dec 8, 2021, 4:15:19 PM

dateUpdated: Aug 4, 2024, 2:59:31 AM

1 related source bulletins · separate from aliases

WID-SEC-W-2022-1375: JFrog Artifactory: Mehrere Schwachstellen

CVE-2013-4517 · CVE-2013-7285 · CVE-2014-0107 · CVE-2014-0114 · CVE-2014-3577 · CVE-2014-3623 · CVE-2015-0227 · CVE-2015-2575 · CVE-2015-3253 · CVE-2015-4852 · CVE-2015-7940 · CVE-2016-10750 · CVE-2016-3092 · CVE-2016-3674 · CVE-2016-6501 · CVE-2016-8735 · CVE-2016-8745 · CVE-2017-1000487 · CVE-2017-15095 · CVE-2017-17485 · CVE-2017-18214 · CVE-2017-18640 · CVE-2017-7525 · CVE-2017-7657 · CVE-2017-7957 · CVE-2017-9506 · CVE-2018-1000206 · CVE-2018-9116 · CVE-2019-10219 · CVE-2019-12402 · CVE-2019-17359 · CVE-2019-17571 · CVE-2019-20104 · CVE-2020-11996 · CVE-2020-13934 · CVE-2020-13935 · CVE-2020-13949 · CVE-2020-14340 · CVE-2020-15586 · CVE-2020-1745 · CVE-2020-17521 · CVE-2020-25649 · CVE-2020-28500 · CVE-2020-29582 · CVE-2020-36518 · CVE-2020-7226 · CVE-2020-7692 · CVE-2020-8203 · CVE-2021-13936 · CVE-2021-21290 · CVE-2021-22060 · CVE-2021-22112 · CVE-2021-22119 · CVE-2021-22147 · CVE-2021-22148 · CVE-2021-22149 · CVE-2021-22573 · CVE-2021-23337 · CVE-2021-25122 · CVE-2021-26291 · CVE-2021-27568 · CVE-2021-29505 · CVE-2021-30129 · CVE-2021-33037 · CVE-2021-35550 · CVE-2021-35556 · CVE-2021-35560 · CVE-2021-35561 · CVE-2021-35564 · CVE-2021-35565 · CVE-2021-35567 · CVE-2021-35578 · CVE-2021-35586 · CVE-2021-35588 · CVE-2021-35603 · CVE-2021-36374 · CVE-2021-3765 · CVE-2021-3807 · CVE-2021-38561 · CVE-2021-3859 · CVE-2021-41090 · CVE-2021-41091 · CVE-2021-42340 · CVE-2021-42550 · CVE-2021-43797 · CVE-2022-0536 · CVE-2022-22963 · CVE-2022-23632 · CVE-2022-23648 · CVE-2022-23806 · CVE-2022-24769 · CVE-2022-24823 · CVE-2022-27191 · CVE-2022-29153 · CVE-2022-32212 · CVE-2022-32213 · CVE-2022-32214 · CVE-2022-32215 · CVE-2022-32223

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2021-41090

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Modified

Weakness classifications: CWE-200 · CWE-312

Original publisher date fields

published: 2021-12-08T17:15:11.093

lastModified: 2026-06-17T04:07:51.260

1 source CPE criteria · context only
  • cpe:2.3:a:grafana:agent:*:*:*:*:*:*:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-9c4x-5hgq-q3wh

Published

github.com/grafana/agent

Go

SEMVER · introduced 0.14.0 → fixed 0.21.2

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GO-2022-0305

Published

github.com/grafana/agent

Go

SEMVER · introduced 0.14.0 → fixed 0.21.2

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 25 Nov 16:42 UTC · 276 of 278 readable · 271 fully read · documentation 469/469 current