CVE-2022-45868: H2 Database Engine - Hardcoded Credentials
- Cve: CVE-2022-45868
- Name: H2 Database Engine - Hardcoded Credentials
- Description: 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.
- Impact: Local attackers can retrieve the admin password by process inspection, potentially leading to unauthorized access to the database admin console.
- Remediation: Update to version 2.2.220 or later.
- Vulnerability type: hardcoded_credentials
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs local access to process list
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00331
- Epss percentile: 0.26797
- Assignee: [email protected]
- Published at: 2022-11-23T21:15:11Z
- Age in days: 1461
- Modified at: 2026-06-17T05:10:53Z
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-45868
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-312 | Cleartext Storage of Sensitive Information |
Hackerone
- Reports: 2
- Rank: 3792
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://sites.google.com/sonatype.com/vulnerabilities/sonatype-2022-6243 | nvd | 2022-11-23 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| h2database:h2 | <= 2.1.214 | no | nvd | /v1/products/h2database/h2 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| h2database/h2database | commit, issues, package, pull, releases | yes | /v1/repositories/h2database/h2database |
Index
- Repositories: 373
- Repositories high signal: 228
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-11-23
- Authentication required: yes
- Hackerone reports: 2
- Exposed hosts: 64656
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since