CVE-2022-39362 | Metabase vulnerable to arbitrary SQL execution from queryhash

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.

Published: 2022-10-26 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-39362 is rated Moderate Risk (56.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.42%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-39362

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-10-27 0.10% 0.42% +0.32%
2 2025-03-30 0.31% 0.10% -0.22%
3 2025-03-29 0.31%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-39362

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]

Weakness enumeration for CVE-2022-39362

Affected software / configurations for CVE-2022-39362

Vendor Product Version Raw CPE
metabase metabase >= 0.41.0, < 0.41.9 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 0.42.0, < 0.42.6 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 0.43.0, < 0.43.7 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 0.44.0, < 0.44.5 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 1.41.0, < 1.41.9 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 1.42.0, < 1.42.6 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 1.43.0, < 1.43.7 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*
metabase metabase >= 1.44.0, < 1.44.5 cpe:2.3:a:metabase:metabase:*:*:*:*:*:*:*:*

References for CVE-2022-39362

cvelogic Threat Intelligence