VDB

CVE-2022-46146

CVE-2022-46146 PUBLISHED CVSS 6.2 MEDIUM

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.

PackageEcosystemFixed in
github.com/prometheus/exporter-toolkitGo Modules0.8.2, 0.7.2
kube-state-metrics-2.6Chainguard2.6.0-r1
exporter_toolkitprometheus0.8.2, 0.7.2

Risk scores

CVSS 3.1
6.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
prometheusexporter-toolkit< 0.7.2, >= 0.8.0, < 0.8.2
chainguardkube-state-metrics-2.60
chainguardprometheus-postgres-exporter-0.10*
prometheusexporter-toolkit0.8.0, 0
alpineprometheus0, 0
github.comprometheus/exporter-toolkit0, 0.8.0
chainguardprometheus-pushgateway-1.40
alpineprometheus-node-exporter0
chainguardprometheus-pushgateway-fips-1.40
chainguardprometheus-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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›