Security mailing lists by PureSourceCode

CVE-2021-42392

CRITICAL 9.8CVSS 3.1

RCE in H2 Console

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.

Published
10 Jan 2022
Last modified
8 Jul 2026
Assigned by
reefs@jfrog.com
NVD status
Modified
Weakness
CWE-502
Also known as
GHSA-h376-j262-vhq6
Sources
NVDJSONOSV GHSA-h376-j262-vhq6JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD h2database h2
cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:*
>= 1.1.000, <= 2.0.204
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD oracle communications_cloud_native_core_policy
cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:*
= 1.15.0
OSV Maven com.h2database:h2 >= 1.1.100, < 2.0.206 2.0.206

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jan 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.