h2database — security advisory
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.
- Products
- h2database
- Affected versions
- 2.1.214-1, 2.2.220-1, 2.5.252-1
- Fixed versions
- Not specified
- CVEs
- CVE-2022-45868
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:22 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2022-45868
h2database
Fixed versions: Not specified
h2database
Fixed versions: Not specified
h2database
Fixed versions: Not specified
Complete source record
{
"id": "31d462458bc7e837fbc28709937fe5fd6f9eebe390bedd4df1e40125eea097f1",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-45868",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-45868",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2022-45868",
"products": [
{
"name": {
"value": "h2database",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.214-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.2.220-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.5.252-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "h2database",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.220-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.5.252-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "h2database",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.220-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.5.252-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-45868",
"aliases": [
"DEBIAN-CVE-2022-45868"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "h2database",
"purl": "pkg:deb/debian/h2database?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.1.214-1",
"2.2.220-1",
"2.5.252-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45868.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "h2database",
"purl": "pkg:deb/debian/h2database?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.2.220-1",
"2.5.252-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45868.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "h2database",
"purl": "pkg:deb/debian/h2database?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.2.220-1",
"2.5.252-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45868.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
}
],
"modified": "2026-10-15T08:02:55.329096565Z",
"provider": "osv",
"upstream": [
"CVE-2022-45868"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-45868"
]
},
"related_cves": [
{
"value": "CVE-2022-45868",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 324604,
"published_at": "2022-11-23T21:15:11.36+00:00"
}