Exploit database

Vulnerability

CVE-2021-42392

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

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.

CVE Program

Exploit source choices

5 sources
be-innova/cve-2021-42392-exploit-lab
GH-e8ccc3f2d1acfcae0629d4392c5de855GitHubUnofficial GitHub source

be-innova/cve-2021-42392-exploit-lab source repository

2025-05-087 files · 0 stars
cuspycode/jpa-crypt
GH-3b39213cf0a64fe78a614d163ab435b2GitHubUnofficial GitHub source

Encrypted storage of SQL columns using JPA and javax.crypto

2017-10-2311 files · 0 stars
cuspycode/jpa-ddl
GH-ed507e7fd28e4a42b0bef55cd812228cGitHubUnofficial GitHub source

Generate and populate SQL tables via JPA provider

2017-10-2218 files · 0 stars