Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-41090

MEDIUM 6.5EPSS 52%

Instance config inline secret exposure

Also known as GHSA-9c4x-5hgq-q3wh, GO-2022-0305

Mitigation

  • Upgrade github.com/grafana/agent to 0.21.2 or later.

Who should check

  • Projects that depend on Go package github.com/grafana/agent (>= 0.14.0, < 0.21.2)
  • Anyone running grafana agent >= 0.14.0, < 0.20.1; >= 0.21.0, < 0.21.2

Vulnerability facts

Affected
github.com/grafana/agent >= 0.14.0, < 0.21.2
Fixed in
0.21.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.76% chance of exploitation in 30 days (percentile 52, 2026-11-26)
CWE
CWE-200
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/grafana/agent>= 0.14.0, < 0.21.20.21.2osv
grafana agent>= 0.14.0, < 0.20.1; >= 0.21.0, < 0.21.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-41090. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-41090.md
Affected: github.com/grafana/agent >= 0.14.0, < 0.21.2
Fixed in: 0.21.2

Steps:
1. Search this machine and project for github.com/grafana/agent (Go), grafana agent: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-41090 being exploited?

There is no confirmed exploitation: CVE-2021-41090 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-41090?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-41090?

github.com/grafana/agent >= 0.14.0, < 0.21.2.

Is there a fix for CVE-2021-41090?

Yes. Fixed in 0.21.2. Upgrade github.com/grafana/agent to 0.21.2 or later.

How do I check if I'm affected by CVE-2021-41090?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors