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.

Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)1.3%top 29.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20prometheus2.40.4-r1ALPINE-CVE-2022-46146
Alpine:v3.21prometheus2.40.4-r1ALPINE-CVE-2022-46146
Alpine:v3.22prometheus2.40.4-r1ALPINE-CVE-2022-46146
Alpine:v3.23prometheus2.40.4-r1ALPINE-CVE-2022-46146
Alpine:v3.24prometheus2.40.4-r1ALPINE-CVE-2022-46146
Alpine:v3.20prometheus-node-exporter1.5.0-r0ALPINE-CVE-2022-46146
Alpine:v3.21prometheus-node-exporter1.5.0-r0ALPINE-CVE-2022-46146
Alpine:v3.22prometheus-node-exporter1.5.0-r0ALPINE-CVE-2022-46146
Alpine:v3.23prometheus-node-exporter1.5.0-r0ALPINE-CVE-2022-46146
Alpine:v3.24prometheus-node-exporter1.5.0-r0ALPINE-CVE-2022-46146
Debian:12golang-github-prometheus-exporter-toolkit0.8.2-1DEBIAN-CVE-2022-46146
Debian:13golang-github-prometheus-exporter-toolkit0.8.2-1DEBIAN-CVE-2022-46146
Debian:14golang-github-prometheus-exporter-toolkit0.8.2-1DEBIAN-CVE-2022-46146
Gogithub.com/prometheus/exporter-toolkit0.7.2GHSA-7rg2-cxvp-9p7p
Gogithub.com/prometheus/exporter-toolkit0.8.2GHSA-7rg2-cxvp-9p7p
Gogithub.com/prometheus/exporter-toolkit0.7.2, 0.8.2GO-2022-1130
Ubuntu:22.04:LTSgolang-github-prometheus-exporter-toolkitno fix listedUBUNTU-CVE-2022-46146
Ubuntu:25.10prometheusno fix listedUBUNTU-CVE-2022-46146
Ubuntu:26.10prometheusno fix listedUBUNTU-CVE-2022-46146

Affected products (as reported)

VendorProductVersions
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