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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.38% (percentile 72, 2026-11-26)
- **CWE:** CWE-303, CWE-287
- **Aliases:** GHSA-7rg2-cxvp-9p7p, GO-2022-1130
- **Published:** 2022-11-29T00:00:00.000Z
- **Modified:** 2026-09-10T03:49:47.410Z

## Who should check

- Projects that depend on Go package github.com/prometheus/exporter-toolkit (\< 0.7.2)
- Anyone running prometheus exporter-toolkit \< 0.7.2; \>= 0.8.0, \< 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.

## Affected and fixed versions

- Go `github.com/prometheus/exporter-toolkit`: affected \< 0.7.2; fixed 0.7.2, 0.8.2 (osv)
- prometheus exporter-toolkit: \< 0.7.2; \>= 0.8.0, \< 0.8.2 (cvelist)

## Mitigation

- Upgrade github.com/prometheus/exporter-toolkit to one of 0.7.2, 0.8.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-46146. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-46146.md
Affected: github.com/prometheus/exporter-toolkit < 0.7.2
Fixed in: 0.7.2, 0.8.2

Steps:
1. Search this machine and project for github.com/prometheus/exporter-toolkit (Go), prometheus exporter-toolkit: 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.
```

## FAQ

### Is CVE-2022-46146 being exploited?

There is no confirmed exploitation: CVE-2022-46146 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-46146?

Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-46146?

github.com/prometheus/exporter-toolkit \< 0.7.2.

### Is there a fix for CVE-2022-46146?

Yes. Fixed in 0.7.2, 0.8.2. Upgrade github.com/prometheus/exporter-toolkit to one of 0.7.2, 0.8.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-46146?

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.

## References

- vendor: <https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA/>
- vendor: <https://security.gentoo.org/glsa/202401-15>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-46146>
- patch: <https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5>
- patch: <https://github.com/prometheus/exporter-toolkit/commit/25288779bc59d00c41b4a1706c6b87f0561ef2d7>
- exploit: <http://www.openwall.com/lists/oss-security/2022/11/29/1>
- exploit: <http://www.openwall.com/lists/oss-security/2022/11/29/2>
- exploit: <http://www.openwall.com/lists/oss-security/2022/11/29/4>
- other: <https://github.com/prometheus/exporter-toolkit>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-46146>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7rg2-cxvp-9p7p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-1130> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-46146> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-46146>
