CVE-2021-41090Medium· 6.5▾ SunlitInstance config inline secret exposure in Grafana
▾ Sunlit zone — Low / medium · no exploitation signal
impact 35.8 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.7%
Some inline secrets are exposed in plaintext over the Grafana Agent HTTP server:
/-/config/-/config/-/config./-/config./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:
Non-inlined secrets, such as *_file-based secrets, are not impacted by this vulnerability.
Download v0.20.1 or any version past 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.
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:
http_listen_address in the server block. 127.0.0.1 is the most restrictive, 0.0.0.0 is the default.github.com/grafana/agent >= 0.14.0, < 0.21.2Upgrade to a patched release:
github.com/grafana/agent 0.21.2Connected by shared product, vendor, weakness, or advisory.
CVE-2021-43798High· 7.5Grafana path traversal
CVE-2023-22462Medium· 6.4Grafana vulnerable to Stored Cross-site Scripting in Text plugin
CVE-2020-13430Medium· 6.1Grafana XSS via the OpenTSDB datasource
CVE-2024-10452Low· 2.2Grafana org admin can delete pending invites in different org
CVE-2019-19499Medium· 6.5Grafana Arbitrary File Read
CVE-2025-3415Medium· 4.3Grafana's insecure DingDing Alert integration exposes sensitive information