Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/prometheus/exporter-toolkit
  4. ›
  5. CVE-2022-46146

CVE-2022-46146: Improper Authentication

November 29, 2022 (updated January 12, 2024)

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.

References

  • www.openwall.com/lists/oss-security/2022/11/29/1
  • www.openwall.com/lists/oss-security/2022/11/29/2
  • www.openwall.com/lists/oss-security/2022/11/29/4
  • github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5
  • github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p
  • nvd.nist.gov/vuln/detail/CVE-2022-46146

Code Behaviors & Features

Detect and mitigate CVE-2022-46146 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.2, all versions starting from 0.8.0 before 0.8.2

Fixed versions

  • v0.7.2
  • v0.8.2

Solution

Upgrade to versions 0.7.2, 0.8.2 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/prometheus/exporter-toolkit/CVE-2022-46146.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.