{"id":"CVE-2022-45868","aliases":["CLSA-2025-1763597218","CLSA-2026-1786683223","DEBIAN-CVE-2022-45868","EUVD-2022-7189","GHSA-22wj-vf5f-wrvj","RHLW-2026-7a34ef2db32d7967","ROOT-APP-MAVEN-CVE-2022-45868"],"status":"disputed","title":"Password exposure in H2 Database","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.","severity":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00321,"percentile":0.25421,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-312"],"published":"2022-11-23T00:00:00Z","modified":"2026-11-03T08:03:10Z","fixes":[{"ecosystem":"Maven","package":"com.h2database:h2","fixed_in":["2.2.220"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:Maven","package":"com.h2database:h2","fixed_in":["2.1.210-tuxcare.1"],"sources":["osv"]},{"ecosystem":"Red Hat Lightwell:Maven","package":"com.h2database:h2","fixed_in":["2.2.219.rhlw-00001"],"sources":["osv"]},{"ecosystem":"Root:Maven","package":"com.h2database:h2","fixed_in":["2.1.214-aikido.1","2.1.214-aikido.2"],"sources":["osv"]},{"ecosystem":"Root:Maven","package":"io.root.com.h2database:h2","fixed_in":["2.1.214-root.io.1","2.1.214-root.io.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.198"},{"fixed":"2.2.220"}]}]},{"source":"osv","ecosystem":"TuxCare:Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.200"},{"fixed":"1.4.200-tuxcare.1"}]}],"versions":["1.4.200"],"bundled":4},{"source":"osv","ecosystem":"TuxCare:Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.210"},{"fixed":"2.1.210-tuxcare.1"}]}],"versions":["2.1.210"]},{"source":"osv","ecosystem":"Debian:12","package":"h2database","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.214-1","2.2.220-1","2.5.252-1","2.5.252-2"]},{"source":"osv","ecosystem":"Debian:13","package":"h2database","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.220-1","2.5.252-1","2.5.252-2"]},{"source":"osv","ecosystem":"Debian:14","package":"h2database","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.220-1","2.5.252-1","2.5.252-2"]},{"source":"osv","ecosystem":"Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.198"},{"fixed":"2.2.220"}]}],"versions":["1.4.198","1.4.199","1.4.200","2.0.202","2.0.204","2.0.206","2.1.210","2.1.212","2.1.214"]},{"source":"osv","ecosystem":"Red Hat Lightwell:Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.219.rhlw-00001"}]}],"versions":["1.0.20061217","1.0.20070304","1.0.20070429","1.0.20070617","1.0.57","1.0.58","1.0.59","1.0.60","1.0.61","1.0.62","1.0.63","1.0.64","1.0.65","1.0.66","1.0.67","1.0.68","1.0.69","1.0.70","1.0.71","1.0.72","1.0.73","1.0.74","1.0.75","1.0.76","1.0.77","1.0.78","1.0.79","1.1.100","1.1.101","1.1.102","1.1.103","1.1.104","1.1.105","1.1.106","1.1.107","1.1.108","1.1.109","1.1.110","1.1.111","1.1.112","1.1.113","1.1.114","1.1.115","1.1.116","1.1.117","1.1.118","1.1.119","1.2.120","1.2.121","1.2.122","1.2.123","1.2.124","1.2.125","1.2.126","1.2.127","1.2.128","1.2.129","1.2.130","1.2.131","1.2.132","1.2.133","1.2.134","1.2.135","1.2.136","1.2.137","1.2.138","1.2.139","1.2.140","1.2.141","1.2.142","1.2.143","1.2.144","1.2.145","1.2.147","1.3.146","1.3.148","1.3.149","1.3.150","1.3.151","1.3.152","1.3.153","1.3.154","1.3.155","1.3.156","1.3.157","1.3.158","1.3.159","1.3.160","1.3.161","1.3.162","1.3.163","1.3.164","1.3.165","1.3.166","1.3.167","1.3.168","1.3.169","1.3.170","1.3.171","1.3.172","1.3.173","1.3.174","1.3.175","1.3.176","1.4.177","1.4.178","1.4.179","1.4.180","1.4.181","1.4.182","1.4.183","1.4.184","1.4.185","1.4.186","1.4.187","1.4.188","1.4.189","1.4.190","1.4.191","1.4.192","1.4.193","1.4.194","1.4.195","1.4.196","1.4.197","1.4.198","1.4.199","1.4.200","2.0.202","2.0.204","2.0.206","2.1.210","2.1.212","2.1.214","2.2.219"]},{"source":"osv","ecosystem":"Root:Maven","package":"com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.214-aikido.1"},{"fixed":"2.1.214-aikido.2"}]}]},{"source":"osv","ecosystem":"Root:Maven","package":"io.root.com.h2database:h2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.214-root.io.1"},{"fixed":"2.1.214-root.io.2"}]}]}],"products":[{"vendor":"h2database","product":"h2"}],"references":[{"url":"https://sites.google.com/sonatype.com/vulnerabilities/sonatype-2022-6243","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/h2database/h2database/blob/96832bf5a97cdc0adc1f2066ed61c54990d66ab5/h2/src/main/org/h2/server/web/WebServer.java#L346-L347","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/h2database/h2database/issues/3686","tags":["x_transferred","report","web"]},{"url":"https://github.com/advisories/GHSA-22wj-vf5f-wrvj","tags":["x_transferred","advisory"]},{"url":"https://github.com/h2database/h2database/pull/3833","tags":["x_transferred","fix","web"]},{"url":"https://github.com/h2database/h2database/releases/tag/version-2.2.220","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45868","tags":["advisory"]},{"url":"https://github.com/h2database/h2database/commit/581ed18ff9d6b3761d851620ed88a3994a351a0d","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45868.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-45868","tags":["advisory"]},{"url":"https://github.com/h2database/h2database","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-45868","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.","status":"disputed","published":"2022-11-23T00:00:00Z","modified":"2024-11-19T20:58:46.087Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:31.519788Z"}],"euvd":[{"id":"EUVD-2022-7189","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.","status":"published","published":"2022-11-23T00:00:00Z","modified":"2024-11-19T20:58:46Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"high"}],"updated_at":"2026-11-03T00:04:54.7374Z"}],"ghsa":[{"id":"GHSA-22wj-vf5f-wrvj","title":"Password exposure in H2 Database ","description":"The web-based admin console in H2 Database Engine through 2.1.214 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.\"","status":"published","published":"2022-11-23T21:30:31Z","modified":"2024-07-03T17:59:04Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-200","CWE-312"],"updated_at":"2026-11-02T14:37:55.455438Z"}],"nvd":[{"id":"CVE-2022-45868","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.","status":"disputed","published":"2022-11-23T21:15:11.36Z","modified":"2026-06-17T05:10:53.73Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-312"],"updated_at":"2026-11-02T14:07:32.827264Z"}],"osv":[{"id":"CVE-2022-45868","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.","status":"published","published":"2022-11-23T00:00:00Z","modified":"2026-10-28T02:31:07.353584486Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"high"}],"updated_at":"2026-11-02T15:44:27.481647Z"},{"id":"DEBIAN-CVE-2022-45868","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.","status":"published","published":"2022-11-23T21:15:11.36Z","modified":"2026-11-03T08:03:10.152115416Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T08:24:39.643572Z"},{"id":"GHSA-22wj-vf5f-wrvj","title":"Password exposure in H2 Database ","description":"The web-based admin console in H2 Database Engine through 2.1.214 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.\"","status":"published","published":"2022-11-23T21:30:31Z","modified":"2026-09-10T03:49:46.817709183Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-200","CWE-312"],"updated_at":"2026-11-02T15:46:33.520522Z"},{"id":"RHLW-2026-7a34ef2db32d7967","title":"Lightwell Security Advisory: h2 2.2.219.rhlw-00001","description":"Red Hat Lightwell has released com.h2database:h2 2.2.219.rhlw-00001 with a backported security fix.\n\nCVE-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.\n\nThis patched artifact is a drop-in replacement for com.h2database:h2 2.2.219 from Maven Central.","status":"published","published":"2026-10-09T18:45:18Z","modified":"2026-10-27T04:00:10.637023202Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:58.636919Z"},{"id":"CLSA-2025-1763597218","title":"TuxCare security update for com.h2database:h2 (4 CVEs)","description":"TuxCare rebuilt com.h2database:h2 to address 4 CVEs. Fixed in 1.4.200-tuxcare.1.","status":"published","published":"2026-08-04T14:52:06Z","modified":"2026-10-30T19:45:04.97031498Z","updated_at":"2026-11-02T15:43:42.427288Z"},{"id":"CLSA-2026-1786683223","title":"TuxCare security update for com.h2database:h2 (1 CVE)","description":"TuxCare rebuilt com.h2database:h2 to address 1 CVE. Fixed in 2.1.210-tuxcare.1.","status":"published","published":"2026-08-14T04:53:43Z","modified":"2026-10-30T19:45:11.549544495Z","updated_at":"2026-11-02T15:43:47.20725Z"},{"id":"ROOT-APP-MAVEN-CVE-2022-45868","title":"CVE-2022-45868 in com.h2database:h2 - Patched by Root","description":"Root has patched CVE-2022-45868 in the com.h2database:h2 package for Root:Maven. Multiple fixed versions available.","status":"published","published":"2026-10-15T08:20:27Z","modified":"2026-10-15T09:15:03.271642096Z","updated_at":"2026-11-02T15:53:27.066589Z"}]}}
