Prometheus Exporter Toolkit vulnerable to basic authentication bypass
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 3 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-287.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| prometheus | exporter-toolkit | before 0.7.2; 0.8.0 to before 0.8.2 | 0.7.2, 0.8.2 | Patch available | CNA |
| — | github.com/prometheus/exporter-toolkit (Go) | before 0.7.2 | 0.7.2 | Patch available | GHSA-7rg2-cxvp-9p7p |
| — | github.com/prometheus/exporter-toolkit (Go) | 0.8.0 to before 0.8.2 | 0.8.2 | Patch available | GHSA-7rg2-cxvp-9p7p |
- exporter-toolkit Vendorprometheus Affected before 0.7.2; 0.8.0 to before 0.8.2 Fixed in 0.7.2, 0.8.2 Patch available CNA
- github.com/prometheus/exporter-toolkit (Go) Vendor— Affected before 0.7.2 Fixed in 0.7.2 Patch available GHSA-7rg2-cxvp-9p7p
- github.com/prometheus/exporter-toolkit (Go) Vendor— Affected 0.8.0 to before 0.8.2 Fixed in 0.8.2 Patch available GHSA-7rg2-cxvp-9p7p
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:prometheus:exporter_toolkit:*:*:*:*:*:*:*:* | before 0.7.2; 0.8.0 to before 0.8.2 | Vulnerable | prometheus |
- cpe:2.3:a:prometheus:exporter_toolkit:*:*:*:*:*:*:*:* Versions before 0.7.2; 0.8.0 to before 0.8.2 Vulnerable ·prometheus
Remediation
- Fix · CNA exporter-toolkit (prometheus) Fixed in 0.7.2, 0.8.2
- Fix · GHSA-7rg2-cxvp-9p7p github.com/prometheus/exporter-toolkit (Go) Fixed in 0.7.2 Advisory →
- Fix · GHSA-7rg2-cxvp-9p7p github.com/prometheus/exporter-toolkit (Go) Fixed in 0.8.2 Advisory →
Red Hat 3 advisories
- RHSA-2023:5001 Released 2023-09-13 · Red Hat rating ModerateOpenShift Container Platform 4.11.49 bug fix and security update
- Red Hat OpenShift Container Platform 4.11 openshift4/ose-thanos-rhel8
- RHSA-2023:1326 Released 2023-05-17 · Red Hat rating ImportantOpenShift Container Platform 4.13.0 security update
- Red Hat OpenShift Container Platform 4.13 openshift4/cloud-network-config-controller-rhel8, openshift4/egress-router-cni-rhel8, openshift4/kubevirt-csi-driver-rhel8 +47
- RHSA-2023:2110 Released 2023-05-10 · Red Hat rating ModerateOpenShift Container Platform 4.12.16 security update
- Red Hat OpenShift Container Platform 4.12 openshift4/ose-thanos-rhel8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 2 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4.11 | Fixed | RHSA-2023:5001 |
| Red Hat OpenShift Container Platform 4.12 | Fixed | RHSA-2023:2110 |
| Red Hat OpenShift Container Platform 4.13 | Fixed | RHSA-2023:1326 |
Not affected: 6 products
- Logging Subsystem for Red Hat OpenShift
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.11
- Red Hat OpenShift Container Platform 4.12
- Red Hat OpenShift Container Platform 4.13
Timeline
- 2026-10-02 Threatist record created from CVE-2022-46146
- 2026-10-03 Alias added: GHSA-7rg2-cxvp-9p7p
References
Exploit 3
- [oss-security] 20221129 CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication
- [oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication
- [oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication
Patch 1
Advisory 6
Other 8
- https://github.com/prometheus/exporter-toolkit/commit/25288779bc59d00c41b4a1706c6b87f0561ef2d7
- https://github.com/prometheus/exporter-toolkit
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y
Sources
- CVE-2022-46146 · CVE Program
- CVE-2022-46146 · NVD
- FIRST EPSS
- GHSA-7rg2-cxvp-9p7p · GitHub Advisory Database · CC BY 4.0
- CVE-2022-46146 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences