Prometheus Exporter Toolkit vulnerable to basic authentication bypass
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-46146
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:52 UTC · Revision 1
Source evidence
Prometheus Exporter Toolkit vulnerable to basic authentication bypass
core-osv · Original sourcePublished 29 Nov 2022, 00:00 UTC
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.
osv:CVE-2022-46146
Complete source record
{
"id": "2b4c04eec888d6f0c19acbd1164b828b903f240de9e28854e3468a48fa44851d",
"url": "https://osv.dev/vulnerability/CVE-2022-46146",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Prometheus Exporter Toolkit vulnerable to basic authentication bypass",
"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.",
"evidence": "osv:CVE-2022-46146",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-46146",
"aliases": [
"CVE-2022-46146",
"GHSA-7rg2-cxvp-9p7p",
"GO-2022-1130"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/prometheus/exporter-toolkit",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "25288779bc59d00c41b4a1706c6b87f0561ef2d7"
},
{
"introduced": "7cedc3cfb233bd238c0b1a3675385d0518d3d3c5"
},
{
"fixed": "5b1eab34484ddd353986bce736cd119d863e4ff5"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:prometheus:exporter_toolkit:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.7.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:prometheus:exporter_toolkit:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.8.0"
},
{
"fixed": "0.8.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "5b1eab34484ddd353986bce736cd119d863e4ff5"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.7.1",
"v0.8.1",
"v0.8.0",
"v0.7.0",
"v0.6.1",
"v0.6.0",
"v0.5.1",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-46146.json"
}
}
],
"modified": "2026-10-28T02:30:28.174672288Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46146.json",
"https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p",
"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://nvd.nist.gov/vuln/detail/CVE-2022-46146",
"https://security.gentoo.org/glsa/202401-15",
"https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5"
],
"provider_metadata": {
"cwe_ids": [
"CWE-287",
"CWE-303"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46146.json"
}
},
"related_cves": [
{
"value": "CVE-2022-46146",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494668,
"published_at": "2022-11-29T00:00:00+00:00"
}