{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-46146",
        "STATE": "PUBLIC",
        "TITLE": "Prometheus Exporter Toolkit vulnerable to basic authentication bypass"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "exporter-toolkit",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 0.7.2"
                                        },
                                        {
                                            "version_value": ">= 0.8.0, < 0.8.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "prometheus"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "NONE",
            "baseScore": 6.2,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-303: Incorrect Implementation of Authentication Algorithm"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-287: Improper Authentication"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p",
                "refsource": "CONFIRM",
                "url": "https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p"
            },
            {
                "name": "https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5",
                "refsource": "MISC",
                "url": "https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20221129 CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication",
                "url": "http://www.openwall.com/lists/oss-security/2022/11/29/1"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication",
                "url": "http://www.openwall.com/lists/oss-security/2022/11/29/2"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20221129 Re: CVE-2022-46146 in Prometheus' exporter toolkit: bypass basic authentication",
                "url": "http://www.openwall.com/lists/oss-security/2022/11/29/4"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2023-cf176d02d8",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULVDTAI76VATRAHTKCE2SUJ4NC3PQZ6Y/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2023-1b25579262",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JRSHISR64L6QGSMDFZDNPHHIXSCAKK26/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2023-c1318fb7f8",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UH24VXIB25OGHF4VGY4PLZMTGTI3BHCA/"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202401-15",
                "url": "https://security.gentoo.org/glsa/202401-15"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-7rg2-cxvp-9p7p",
        "discovery": "UNKNOWN"
    }
}