Vulnerability · Published Nov 29, 2022 · Assigned by GitHub_M
CVE-2022-46146Prometheus Exporter Toolkit vulnerable to basic authentication bypass
Medium 6.2
In plain English
A medium-severity improper authentication in exporter-toolkit from prometheus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | prometheus | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine:v3.21 | prometheus | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine:v3.22 | prometheus | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine:v3.23 | prometheus | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine:v3.24 | prometheus | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine:v3.20 | prometheus-node-exporter | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine:v3.21 | prometheus-node-exporter | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine:v3.22 | prometheus-node-exporter | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine:v3.23 | prometheus-node-exporter | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine:v3.24 | prometheus-node-exporter | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Debian:12 | golang-github-prometheus-exporter-toolkit | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Debian:13 | golang-github-prometheus-exporter-toolkit | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Debian:14 | golang-github-prometheus-exporter-toolkit | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Go | github.com/prometheus/exporter-toolkit | 0.7.2 | GHSA-7rg2-cxvp-9p7p |
| Go | github.com/prometheus/exporter-toolkit | 0.8.2 | GHSA-7rg2-cxvp-9p7p |
| Go | github.com/prometheus/exporter-toolkit | 0.7.2, 0.8.2 | GO-2022-1130 |
| Ubuntu:22.04:LTS | golang-github-prometheus-exporter-toolkit | no fix listed | UBUNTU-CVE-2022-46146 |
| Ubuntu:25.10 | prometheus | no fix listed | UBUNTU-CVE-2022-46146 |
| Ubuntu:26.10 | prometheus | no fix listed | UBUNTU-CVE-2022-46146 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| prometheus | exporter-toolkit | < 0.7.2>= 0.8.0, < 0.8.2 |
Weakness: CWE-303, CWE-287 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p
- https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5
- [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