{"answers":{"affected":"5 open source packages ship an affected version, including github.com/prometheus/exporter-toolkit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46146 in the wild and no public exploit code.","fix":"Upgrade github.com/prometheus/exporter-toolkit to a fixed version for your release line: 0.7.2 or 0.8.2.","what":"CVE-2022-46146 is a medium-severity authentication bypass vulnerability in prometheus exporter-toolkit, published on 29 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46146 and fix it if it is affected.\n\nWhat it is: CVE-2022-46146 is a medium-severity authentication bypass vulnerability in prometheus exporter-toolkit, published on 29 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-46146 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/prometheus/exporter-toolkit (Go): affected all versions; fixed in 0.7.2, 0.8.2\n- github.com/prometheus/exporter-toolkit (Go): affected all versions; fixed in 0.7.2\n- github.com/prometheus/exporter-toolkit (Go): affected all versions; fixed in 0.7.2\n- github.com/prometheus/exporter-toolkit (Go): affected from 0.8.0; fixed in 0.8.2\n- github.com/prometheus/exporter-toolkit (Go): affected from 0.8.0; fixed in 0.8.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-46146/ (Markdown: https://insights.sbomify.com/CVE-2022-46146/index.md)","id":"CVE-2022-46146","markdown":"https://insights.sbomify.com/CVE-2022-46146/index.md","name":"CVE-2022-46146","record":{"aliases":["AZL-41992","CLEANSTART-2026-PO69653","DEBIAN-CVE-2022-46146","GHSA-7rg2-cxvp-9p7p","GO-2022-1130","SUSE-SU-2023:0460-1","SUSE-SU-2023:0465-1","SUSE-SU-2023:0467-1","SUSE-SU-2023:1857-1","SUSE-SU-2023:1858-1","SUSE-SU-2023:1859-1","UBUNTU-CVE-2022-46146","openSUSE-SU-2024:12650-1","openSUSE-SU-2024:12691-1","openSUSE-SU-2024:12700-1","openSUSE-SU-2024:12872-1","openSUSE-SU-2024:12904-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Prometheus exporter toolkit","requires_auth":"none","summary":"Attackers with access to hashed passwords can bypass authentication in Prometheus exporters by poisoning the cache, requiring an upgrade to fix.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"exporter_toolkit","vendor":"prometheus"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"},{"id":"CWE-287","name":"Improper Authentication"}],"description":"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.","ecosystems":["Go","SUSE:Linux Enterprise Module for SAP Applications 15 SP1","SUSE:Linux Enterprise Module for SAP Applications 15 SP2","SUSE:Linux Enterprise Module for SAP Applications 15 SP3","SUSE:Linux Enterprise Module for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Manager Client Tools 12","SUSE:Manager Client Tools 15","SUSE:Manager Proxy Module 4.2","SUSE:Manager Proxy Module 4.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Prometheus Exporter Toolkit vulnerable to basic authentication bypass","id":"CVE-2022-46146","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":22,"n_references":9,"next":{"headline":"Drag and Drop XBlock v2 has XSS Issues in Xblock Input Fields","id":"CVE-2022-46147"},"packages":[{"ecosystem":"Go","fixed":["0.7.2","0.8.2"],"introduced":["0","0.8.0"],"last_affected":[],"package":"github.com/prometheus/exporter-toolkit","purl":"pkg:golang/github.com/prometheus/exporter-toolkit","source":"GO-2022-1130"},{"ecosystem":"Go","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"github.com/prometheus/exporter-toolkit","purl":null,"source":"GHSA-7rg2-cxvp-9p7p"},{"ecosystem":"Go","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"github.com/prometheus/exporter-toolkit","purl":"pkg:golang/github.com/prometheus/exporter-toolkit","source":"GHSA-7rg2-cxvp-9p7p"},{"ecosystem":"Go","fixed":["0.8.2"],"introduced":["0.8.0"],"last_affected":[],"package":"github.com/prometheus/exporter-toolkit","purl":null,"source":"GHSA-7rg2-cxvp-9p7p"},{"ecosystem":"Go","fixed":["0.8.2"],"introduced":["0.8.0"],"last_affected":[],"package":"github.com/prometheus/exporter-toolkit","purl":"pkg:golang/github.com/prometheus/exporter-toolkit","source":"GHSA-7rg2-cxvp-9p7p"},{"ecosystem":"SUSE:Linux Enterprise Module for SAP Applications 15 SP1","fixed":["1.3.1+git.1676027782.ad3c0e9-150000.1.24.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2023:0460-1"},{"ecosystem":"SUSE:Linux Enterprise Module for SAP Applications 15 SP2","fixed":["1.3.1+git.1676027782.ad3c0e9-150200.3.21.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:0465-1"},{"ecosystem":"SUSE:Linux Enterprise Module for SAP Applications 15 SP3","fixed":["1.3.1+git.1676027782.ad3c0e9-150200.3.21.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:0465-1"},{"ecosystem":"SUSE:Linux Enterprise Module for SAP Applications 15 SP4","fixed":["1.3.1+git.1676027782.ad3c0e9-150200.3.21.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2023:0465-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","fixed":["1.3.1+git.1676027782.ad3c0e9-4.26.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4","source":"SUSE-SU-2023:0467-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["1.3.1+git.1676027782.ad3c0e9-4.26.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/suse/prometheus-ha_cluster_exporter\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:0467-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["2.32.1-1.41.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2023:1858-1"},{"ecosystem":"SUSE:Manager Client Tools 15","fixed":["2.32.1-150000.3.44.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Manager%20Client%20Tools%2015","source":"SUSE-SU-2023:1857-1"},{"ecosystem":"SUSE:Manager Proxy Module 4.2","fixed":["2.32.1-150100.4.12.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Manager%20Proxy%20Module%204.2","source":"SUSE-SU-2023:1859-1"},{"ecosystem":"SUSE:Manager Proxy Module 4.3","fixed":["2.32.1-150100.4.12.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Manager%20Proxy%20Module%204.3","source":"SUSE-SU-2023:1859-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.32.1-150100.4.12.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1859-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.3.1+git.1676027782.ad3c0e9-150200.3.21.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/opensuse/prometheus-ha_cluster_exporter\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0465-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.41.0-1.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12650-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.5.20-2.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12700-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.19.0-13.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-blackbox_exporter","purl":"pkg:rpm/opensuse/prometheus-blackbox_exporter\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12904-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.3.1+git.1676027782.ad3c0e9-2.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-ha_cluster_exporter","purl":"pkg:rpm/opensuse/prometheus-ha_cluster_exporter\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12691-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.10.1-2.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-postgres_exporter","purl":"pkg:rpm/opensuse/prometheus-postgres_exporter\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12872-1"}],"prev":{"headline":"authentik vulnerable to unauthorized user creation and potential account takeover","id":"CVE-2022-46145"},"products":["exporter-toolkit"],"published":"2022-11-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["prometheus"]},"summary":"Attackers with access to hashed passwords can bypass authentication in Prometheus exporters by poisoning the cache, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2022-46146/"}