CVE-2022-46146
Prometheus Exporter Toolkit vulnerable to basic authentication bypass
Reported by github_m · Published November 29, 2022
github.com/prometheus/exporter-toolkit is fixed in 0.8.2 and 0.7.2 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/prometheus/exporter-toolkit | Go Modules | 0.8.2, 0.7.2 |
| kube-state-metrics-2.6 | Chainguard | 2.6.0-r1 |
| exporter_toolkit | prometheus | 0.8.2, 0.7.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| prometheus | exporter-toolkit | < 0.7.2, >= 0.8.0, < 0.8.2 |
| chainguard | kube-state-metrics-2.6 | 0 |
| chainguard | prometheus-postgres-exporter-0.10 | * |
| prometheus | exporter-toolkit | 0.8.0, 0 |
| alpine | prometheus | 0, 0 |
| github.com | prometheus/exporter-toolkit | 0, 0.8.0 |
| chainguard | prometheus-pushgateway-1.4 | 0 |
| alpine | prometheus-node-exporter | 0 |
| chainguard | prometheus-pushgateway-fips-1.4 | 0 |
| chainguard | prometheus-2.38 | * |
Timeline
- Nov 29, 2022 CVE Published
- Nov 30, 2022 EPSS Score (30 in total, the first dated here)
- Dec 2, 2022 CVE Updated
- Mar 17, 2026 Security Advisory (5 in total, the first dated here)
- Jun 12, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-46146
vulnetix vdb fixes CVE-2022-46146
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-46146/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [oss-security] 20221129 CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication mailing-list
- [oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication mailing-list
- [oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication mailing-list
- FEDORA-2023-cf176d02d8 vendor-advisory
- FEDORA-2023-1b25579262 vendor-advisory
- FEDORA-2023-c1318fb7f8 vendor-advisory
- GLSA-202401-15 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-46146 advisory