Security advisory
The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42392
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:58 UTC · Revision 1
Source evidence
The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.
osv:CVE-2021-42392
Complete source record
{
"id": "92d4c8542dfb57a277cb1f97be1b72a42c2c97d4a59e2f7a6731fc08b4d7357c",
"url": "https://osv.dev/vulnerability/CVE-2021-42392",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42392",
"summary": "The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.",
"evidence": "osv:CVE-2021-42392",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-42392",
"aliases": [
"CVE-2021-42392",
"GHSA-h376-j262-vhq6"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/h2database/h2database",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "76994fd0ae92cce4660aa10491a7b6bb7680727a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.1.000"
},
{
"last_affected": "2.0.204"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"version-2.0.204",
"version-2.0.202",
"version-1.4.200",
"version-1.4.199",
"version-1.4.198",
"version-1.4.197",
"version-1.4.195",
"version-1.4.194",
"version-1.4.193",
"version-1.4.192",
"version-1.4.190",
"version-1.4.188"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42392.json"
}
}
],
"modified": "2026-10-20T10:55:00.202629941Z",
"provider": "osv",
"references": [
"https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6",
"https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html",
"https://security.netapp.com/advisory/ntap-20220119-0001/",
"https://www.debian.org/security/2022/dsa-5076",
"https://www.oracle.com/security-alerts/cpuapr2022.html",
"https://www.secpod.com/blog/log4shell-critical-remote-code-execution-vulnerability-in-h2database-console/",
"https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:communications_cloud_native_core_policy",
"extracted_events": [
{
"range": [
{
"introduced": "1.15.0"
},
{
"last_affected": "1.15.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-42392",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386660,
"published_at": "2022-01-10T14:10:23.643+00:00"
}