Skip to content
Fencer Vulns
medium 6.2

CVE-2022-46146 json

Prometheus Exporter Toolkit vulnerable to basic authentication bypass

published 2022-11-29 3 y ago modified 2026-09-10 1 mo ago also GHSA-7rg2-cxvp-9p7p , GO-2022-1130 , EUVD-2022-7555

cvss
6.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 70%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/prometheus/exporter-toolkit 0.7.2, 0.8.2
  • prometheus exporter_toolkit 0.7.2, 0.8.2
  • golang-github-prometheus-exporter-toolkit Debian 14, Debian 13, Debian 12 0.8.2-1

debian advisories DEBIAN-CVE-2022-46146

  • rhnlib Manager Client Tools 15-BETA 5.0.1-159000.6.30.1
  • ansible Manager Client Tools 15-BETA 2.9.27-159000.3.9.1
  • grafana Manager Client Tools 15-BETA 9.5.8-159000.4.24.1
  • mgr-push Manager Client Tools 15-BETA 5.0.1-159000.4.21.1
  • spacecmd Manager Client Tools 15-BETA 5.0.1-159000.6.42.1
  • python-hwdata Manager Client Tools 15-BETA 2.3.5-159000.5.13.1
  • python-pyvmomi Manager Client Tools 15-BETA 6.7.3-159000.3.6.1
  • dracut-saltboot Manager Client Tools Beta for SLE Micro 5, Manager Client Tools 15-BETA 0.1.1681904360.84ef141-159000.3.30.1

suse advisories SUSE-SU-2024:0196-1SUSE-SU-2024:0191-1SUSE-EL-9-CLIENT-TOOLS-2023-3875SUSE-SU-2023:3875-1SUSE-SU-2023:3868-1SUSE-SU-2023:3867-1

  • golang-github-prometheus-node_exporter openSUSE Tumbleweed 1.5.0-1.1
  • golang-github-prometheus-prometheus openSUSE Tumbleweed 2.41.0-1.1
  • prometheus-ha_cluster_exporter openSUSE Tumbleweed 1.3.1+git.1676027782.ad3c0e9-2.1
  • grafana openSUSE Tumbleweed 8.5.20-2.1
  • prometheus-postgres_exporter openSUSE Tumbleweed 0.10.1-2.1
  • prometheus-blackbox_exporter openSUSE Tumbleweed 0.19.0-13.1
  • golang-github-lusitaniae-apache_exporter openSUSE Tumbleweed 1.0.0-1.1

opensuse advisories openSUSE-SU-2024:12637-1openSUSE-SU-2024:12650-1openSUSE-SU-2024:12691-1openSUSE-SU-2024:12700-1openSUSE-SU-2024:12872-1openSUSE-SU-2024:12904-1

  • prometheus Alpine 3.17 2.40.5-r0
  • prometheus Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 2.40.4-r1
  • prometheus-node-exporter Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 1.5.0-r0

alpine advisories ALPINE-CVE-2022-46146

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • prometheus-process-exporter Azure Linux 3.0 0.8.2-1

azure linux advisories AZL-41992

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-46146 updated cvss 7.5

exporter-toolkit: authentication bypass via cache poisoning

  • Red Hat Enterprise Linux 9 grafana, grafana-selinux
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-grafana, rhacm2/kube-state-metrics-rhel9, openshift-tech-preview/metallb-rhel8, openshift4/ose-cluster-monitoring-operator, openshift4/ose-prometheus-alertmanager-rhel9, openshift4/ose-prometheus-node-exporter-rhel9
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat OpenShift distributed tracing 2 rhosdt/opentelemetry-rhel8-operator
    affected: no fix available
  • Red Hat Quay 3 quay/quay-rhel8
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Container Platform 4.11 openshift4/ose-thanos-rhel8 v4.11.0-202308311243.p0.g99b6e03.assembly.stream
    fixed: vendor fix RHSA-2023:5001
  • Red Hat OpenShift Container Platform 4.12 openshift4/ose-thanos-rhel8 v4.12.0-202305022015.p0.g9f2b5ff.assembly.stream
    fixed: vendor fix RHSA-2023:2110
  • Red Hat OpenShift Container Platform 4.13 openshift4/ose-prometheus v4.13.0-202305020815.p0.g8279148.assembly.stream, openshift4/ose-thanos-rhel8 v4.13.0-202304190216.p0.gb6f11a5.assembly.stream, openshift4/ose-kube-state-metrics v4.13.0-202304190216.p0.g4b96984.assembly.stream, openshift4/ose-prometheus-alertmanager v4.13.0-202304190216.p0.gf44d574.assembly.stream, openshift4/ose-prometheus-node-exporter v4.13.0-202304190216.p0.g10dc380.assembly.stream
    fixed: vendor fix RHSA-2023:1326
  • Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel9, openshift-logging/opa-openshift-rhel8, openshift-logging/lokistack-gateway-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/thanos-rhel7, rhacm2/prometheus-rhel9, rhacm2/acm-grafana-rhel8, rhacm2/node-exporter-rhel8, rhacm2/acm-prometheus-rhel8, rhacm2/rbac-query-proxy-rhel8, +3 more Red Hat OpenShift Container Platform 4 openshift4/ose-prom-label-proxy, openshift4/ose-prometheus-rhel9-operator Red Hat OpenShift Container Platform 4.11 openshift4/ose-cli v4.11.0-202308310342.p0.gf56bc26.assembly.stream, openshift4/ose-pod v4.11.0-202308310342.p0.g7aa7ea9.assembly.stream, openshift4/ose-etcd v4.11.0-202308311243.p0.g2ccbc7d.assembly.stream, openshift4/ose-tests v4.11.0-202308310342.p0.g7fbbd19.assembly.stream, openshift4/ose-console v4.11.0-202308310342.p0.geb38ce3.assembly.stream, openshift4/ose-coredns v4.11.0-202308310342.p0.g227d727.assembly.stream, +174 more Red Hat OpenShift Container Platform 4.12 openshift4/ose-cli v4.12.0-202305022015.p0.g31aa3e8.assembly.stream, openshift4/ose-pod v4.12.0-202305022015.p0.g37a9a08.assembly.stream, openshift4/ose-etcd v4.12.0-202305022015.p0.gc1d76ff.assembly.stream, openshift4/ose-tests v4.12.0-202305031829.p0.ga5a9705.assembly.stream, openshift4/ose-console v4.12.0-202305031829.p0.g5562b89.assembly.stream, openshift4/ose-coredns v4.12.0-202305022015.p0.g9aaa7e0.assembly.stream, +182 more Red Hat OpenShift Container Platform 4.13 openshift4/ose-cli v4.13.0-202304190216.p0.g92b1a3d.assembly.stream, openshift4/ose-pod v4.13.0-202304211155.p0.gb404935.assembly.stream, openshift4/ose-etcd v4.13.0-202304190216.p0.gf70da9d.assembly.stream, openshift4/ose-tests v4.13.0-202305031828.p0.g893ae57.assembly.stream, openshift4/ose-console v4.13.0-202305031828.p0.ga551d28.assembly.stream, openshift4/ose-coredns v4.13.0-202304190216.p0.g5560e4a.assembly.stream, +170 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.29% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • openwall.com http://www.openwall.com/lists/oss-security/2022/11/29/2 referenced PoC, tagged "exploit" by a source, unverified
  • openwall.com http://www.openwall.com/lists/oss-security/2022/11/29/4 referenced PoC, tagged "exploit" by a source, unverified
  • openwall.com http://www.openwall.com/lists/oss-security/2022/11/29/1 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
go github.com/prometheus/exporter-toolkit
<0.7.2
>=0.8.0, <0.8.2
0.7.2
0.8.2

Affected products

  • prometheus exporter-toolkit

Classification

Weakness
  • CWE-303 Incorrect Implementation of Authentication Algorithm
  • CWE-287 Improper Authentication

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.