CVE catalog

CVE-2021-42392

h2database: CVE-2021-42392

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
83.18% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianh2databasesid2.5.252-2fixed
Debianh2databaseforky2.5.252-2fixed
Debianh2databasetrixie2.2.220-1fixed
Debianh2databasebookworm2.1.214-1fixed
Ubuntuh2databasepro1.4.196-1vulnerable
Ubuntuh2databasepro1.4.196-2vulnerable
Ubuntuh2databasepro1.4.196-2ubuntu0.1~esm1fixed
Ubuntuh2database20.041.4.197-4vulnerable
Ubuntuh2database20.041.4.197-4+deb10u1build0.20.04.1fixed
Ubuntuh2databasepro1.4.196-1vulnerable
Ubuntuh2databasepro1.4.196-2vulnerable
Ubuntuh2databasepro1.4.196-2ubuntu0.1~esm1fixed
Ubuntuh2database20.041.4.197-4vulnerable
Ubuntuh2database20.041.4.197-4+deb10u1build0.20.04.1fixed
Ubuntuh2database22.041.4.197-4vulnerable
Ubuntuh2database22.042.1.210-1vulnerable
Ubuntuh2database22.042.1.210+really1.4.197-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianh2databasesourcesid2.1.210-1not yet assignedNot reported[1003894]
Debianh2databasesourceforky2.1.210-1not yet assignedNot reported[1003894]
Debianh2databasesourcetrixie2.1.210-1not yet assignedNot reported[1003894]
Debianh2databasesourcebookworm2.1.210-1not yet assignedNot reported[1003894]
Ubuntuh2databasedebpro1.4.196-2ubuntu0.1~esm1Not reportedUSN-6834-1Not reported
Ubuntuh2databasedeb20.041.4.197-4+deb10u1build0.20.04.1Not reportedUSN-5365-1Not reported
Ubuntuh2databasedebpro1.4.196-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-42392Not reported
Ubuntuh2databasedeb20.041.4.197-4+deb10u1build0.20.04.1Not reportedUBUNTU-CVE-2021-42392Not reported
Ubuntuh2databasedeb22.042.1.210+really1.4.197-1Not reportedUBUNTU-CVE-2021-42392Not reported

[Debian bug #1003894]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libh2-java]Fixed

    Source package: [h2database]

    Details (2)
    • 2.1.214-1 · all · bookworm

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · bookworm; dsa · h2database · debian · 12

    • 2.1.214-1 · all · bookworm

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · bookworm; dsa · h2database · debian · 12

  • Source package: [h2database]

    Details (2)
    • 2.1.214-1 · all · bookworm

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · bookworm; dsa · h2database · debian · 12

    • 2.1.214-1 · all · bookworm

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · bookworm; dsa · h2database · debian · 12

[Debian 13 (Trixie)]

  • [libh2-java]Fixed

    Source package: [h2database]

    Details (2)
    • 2.2.220-1 · all · trixie

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · 13

    • 2.2.220-1 · all · trixie

      Fixed · Fixed: 2.1.210-1

      dsa · h2database · debian · 13

Observed:

References