CVE-2022-46146
highpriority · track · 35EPSS 0.013 · 70 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.2–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (47)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-2194Prometheus: Schwachstelle ermöglicht Umgehen von SicherheitsvorkehrungenDeutsch2022-11-29csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Prometheus ausnutzen, um Sicherheitsvorkehrungen zu umgehen.
- WID-SEC-W-2023-2338Red Hat OpenShift: Schwachstelle ermöglicht Umgehen von SicherheitsvorkehrungenDeutsch2023-09-12csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Red Hat OpenShift ausnutzen, um Sicherheitsvorkehrungen zu umgehen.
- GHSA-7rg2-cxvp-9p7pPrometheus Exporter-Toolkit is vulnerable to authentication bypass2022-12-02ghsa · osvUS
### Impact Prometheus and its exporters can be secured by a web.yml file that specifies usernames and hashed passwords for basic authentication. Passwords are hashed with bcrypt, which means that even if you have access to the hash, it is very hard to find the original password back. However, a flaw in the way this mechanism was implemented in the exporter toolkit makes it possible with people who know the hashed password to authenticate against Prometheus. A request can be forged by an attacker to poison the internal cache used to cache the computation of hashes and make subsequent requests successful. This cache is used in both happy and unhappy scenarios in order to limit side channel attacks that could tell an attacker if a user is present in the file or not. ### Patches The exporter-toolkit v0.7.3 and v0.8.2 have been released to address this issue. ### Workarounds There is no workaround but attacker must have access to the hashed password, stored in disk, to bypass the authentication. ### Credit We want to thank Lei Wan reporting this security issue.
- GO-2022-1130Authentication bypass in github.com/prometheus/exporter-toolkit2022-11-29vendor · osvUS
If an attacker has access to a Prometheus web.yml file and users' bcrypted passwords, it would be possible to bypass security via the built-in authentication cache.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (34)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2022/11/29/1cnnvd
- http://www.openwall.com/lists/oss-security/2022/11/29/2cnnvd
- http://www.openwall.com/lists/oss-security/2022/11/29/4cnnvd
- https://access.redhat.com/security/cve/cve-2022-46146cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-46146/cnnvd
- https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5cnnvd
- https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7pcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan