{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2022-39362",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "dateUpdated": "2024-08-03T12:00:44.081Z",
        "dateReserved": "2022-09-02T00:00:00",
        "datePublished": "2022-10-26T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "Metabase vulnerable to arbitrary SQL execution from queryhash",
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2022-10-26T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Metabase is data visualization software. Prior to versions 0.44.5, 1.44.5, 0.43.7, 1.43.7, 0.42.6, 1.42.6, 0.41.9, and 1.41.9, unsaved SQL queries are auto-executed, which could pose a possible attack vector. This issue is patched in versions 0.44.5, 1.44.5, 0.43.7, 1.43.7, 0.42.6, 1.42.6, 0.41.9, and 1.41.9. Metabase no longer automatically executes ad-hoc native queries. Now the native editor shows the query and gives the user the option to manually run the query if they want."
                }
            ],
            "affected": [
                {
                    "vendor": "metabase",
                    "product": "metabase",
                    "versions": [
                        {
                            "version": "< 0.41.9",
                            "status": "affected"
                        },
                        {
                            "version": ">= 0.42.0, < 0.42.6",
                            "status": "affected"
                        },
                        {
                            "version": ">= 0.43.0, < 0.43.7",
                            "status": "affected"
                        },
                        {
                            "version": ">= 0.44.0, < 0.44.5",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.0.0, < 1.41.9",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.42.0, < 1.42.6",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.43.0, < 1.43.7",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.44.0, < 1.44.5",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/metabase/metabase/security/advisories/GHSA-93wj-fgjg-r238"
                },
                {
                    "url": "https://github.com/metabase/metabase/commit/b7c6bb905a9187347cfc9035443b514713027a5c"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-356: Product UI does not Warn User of Unsafe Actions",
                            "cweId": "CWE-356"
                        }
                    ]
                }
            ],
            "source": {
                "advisory": "GHSA-93wj-fgjg-r238",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T12:00:44.081Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/metabase/metabase/security/advisories/GHSA-93wj-fgjg-r238",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/metabase/metabase/commit/b7c6bb905a9187347cfc9035443b514713027a5c",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}