VDB

CVE-2022-45868

CVE-2022-45868 PUBLISHED CVSS 8.4 HIGH

Password exposure in H2 Database

Reported by mitre · Published November 23, 2022

h2 is fixed in 2.2.220 (Maven Central)

The web-based admin console in H2 Database Engine before 2.2.220 can be started via the CLI with the argument -webAdminPassword, which allows the user to specify the password in cleartext for the web admin console. Consequently, a local user (or an attacker that has obtained local access through some means) would be able to discover the password by listing processes and their arguments. NOTE: the vendor states "This is not a vulnerability of H2 Console ... Passwords should never be passed on the command line and every qualified DBA or system administrator is expected to know that." Nonetheless, the issue was fixed in 2.2.220.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
com.h2database:h2Maven Central2.2.220
h2h2database2.1.214

Risk scores

CVSS 3.1
8.4
CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N

Affected products

VendorProductVersions
n/an/an/a
wolfigradle-8*
n/an/a*
chainguardgradle-8*

Timeline

  • Nov 23, 2022 CVE Published
  • Nov 24, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 24, 2022 PoC Published (2 in total, the first dated here)
  • Apr 30, 2026 Security Advisory
  • Jun 12, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-45868
vulnetix vdb fixes CVE-2022-45868

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-45868/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›