CVE-2022-46146Prometheus Exporter Toolkit vulnerable to basic authentication bypass
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
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | prometheus | Fix pending | UBUNTU-CVE-2022-46146 | |
| Ubuntu 26.04 | golang-github-prometheus-exporter-toolkit | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | prometheus | Fix pending | UBUNTU-CVE-2022-46146 | |
| Ubuntu 25.10 | golang-github-prometheus-exporter-toolkit | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | prometheus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46146 | |
| Ubuntu 24.04 | golang-github-prometheus-exporter-toolkit | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | prometheus | Fix pending | UBUNTU-CVE-2022-46146 | |
| Ubuntu 22.04 | golang-github-prometheus-exporter-toolkit | Fix pending | UBUNTU-CVE-2022-46146 | |
| Ubuntu 22.04 | prometheus | Fix pending | UBUNTU-CVE-2022-46146 | |
| Ubuntu 20.04 | prometheus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46146 | |
| Ubuntu 18.04 | prometheus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46146 | |
| Ubuntu 16.04 | prometheus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46146 | |
| Debian 14 | golang-github-prometheus-exporter-toolkit | Fixed | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Debian 13 | golang-github-prometheus-exporter-toolkit | Fixed | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Debian 12 | golang-github-prometheus-exporter-toolkit | Fixed | 0.8.2-1 | DEBIAN-CVE-2022-46146 |
| Red Hat Enterprise Linux 9 | grafana | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Will not fix Will not fix | ||
| Alpine Linux 3.24 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.24 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.23 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.23 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.22 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.22 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.21 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.21 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.20 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.20 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.19 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.19 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.18 | prometheus | Fixed | 2.40.4-r1 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.18 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.17 | prometheus | Fixed | 2.40.5-r0 | ALPINE-CVE-2022-46146 |
| Alpine Linux 3.17 | prometheus-node-exporter | Fixed | 1.5.0-r0 | ALPINE-CVE-2022-46146 |
| Go library | github.com/prometheus/exporter-toolkit | Fixed | 0.8.2 | GHSA-7rg2-cxvp-9p7p |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- prometheus exporter-toolkit: affected: < 0.7.2, >= 0.8.0, < 0.8.2
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202401-15 (vendor-advisory)
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.