wasimakh2 / JPAGenratorRelease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CVE-2021-42392 (Critical) detected in h2-1.4.199.jar

mend-bolt-for-github opened this issue · comments

CVE-2021-42392 - Critical Severity Vulnerability

Vulnerable Library - h2-1.4.199.jar

H2 Database Engine

Library home page: http://www.h2database.com

Path to dependency file: /JPAGenrator-0.0.1-SNAPSHOT/META-INF/maven/com.ncstc/JPAGenrator/pom.xml

Path to vulnerable library: /JPAGenrator-0.0.1-SNAPSHOT/WEB-INF/lib/h2-1.4.199.jar,/epository/com/h2database/h2/1.4.199/h2-1.4.199.jar

Dependency Hierarchy:

  • h2-1.4.199.jar (Vulnerable Library)

Found in base branch: master

Vulnerability Details

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.

Publish Date: 2022-01-10

URL: CVE-2021-42392

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-h376-j262-vhq6

Release Date: 2022-01-10

Fix Resolution: 2.0.206


Step up your Open Source Security Game with Mend here