CVE-2022-45868
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | h2database | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | jameica-h2database | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | mediathekview | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | h2database | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | mediathekview | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | h2database | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | mediathekview | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | mediathekview | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | h2database | Fix pending | ||
| Ubuntu 16.04 | mediathekview | Fix pending | ||
| Ubuntu 14.04 | mediathekview | Fix pending | ||
| Debian 14 | h2database | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-45868 | |
| Debian 13 | h2database | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-45868 | |
| Debian 12 | h2database | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-45868 | |
| Maven library | com.h2database:h2 | Fixed | 2.2.220 | GHSA-22wj-vf5f-wrvj |
References
- https://sites.google.com/sonatype.com/vulnerabilities/sonatype-2022-6243
- https://github.com/h2database/h2database/blob/96832bf5a97cdc0adc1f2066ed61c54990d66ab5/h2/src/main/org/h2/server/web/WebServer.java#L346-L347
- https://github.com/h2database/h2database/issues/3686
- https://github.com/advisories/GHSA-22wj-vf5f-wrvj
- https://github.com/h2database/h2database/pull/3833
- https://github.com/h2database/h2database/releases/tag/version-2.2.220
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.