CVE-2026-41042
Deferred Deferred - Pending Action

Remote Code Execution in Apache Gravitino via H2 JDBC URL

Vulnerability report for CVE-2026-41042, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-08

Assigner: Apache Software Foundation

Description

Unauthenticated callers can supply a malicious H2 JDBC URL through the testConnection API, which executes arbitrary Java code on the server via H2's INIT parameter. Vulnerability in Apache Gravitino. This issue affects Apache Gravitino: before 1.2.1. Users are recommended to upgrade to version 1.2.1, which fixes the issue. This issue only happens when using H2, and H2 is mainly used for testing and local development. Also, Gravitino is typically deployed in the internal environment, so the severity is low.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-08
Generated
2026-07-16
AI Q&A
2026-07-08
EPSS Evaluated
2026-07-14
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
apache gravitino to 1.2.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Compliance Impact

The vulnerability allows unauthenticated callers to execute arbitrary Java code on the server via a malicious H2 JDBC URL. However, since this issue only occurs when using H2, which is mainly for testing and local development, and Gravitino is typically deployed in internal environments, the overall severity is considered low.

There is no direct information provided about the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Executive Summary

This vulnerability allows unauthenticated callers to provide a malicious H2 JDBC URL through the testConnection API in Apache Gravitino. By exploiting the H2 database's INIT parameter, an attacker can execute arbitrary Java code on the server.

The issue affects versions of Apache Gravitino before 1.2.1 and occurs only when using the H2 database, which is mainly used for testing and local development.

Impact Analysis

An attacker exploiting this vulnerability can execute arbitrary Java code on the server without authentication, potentially leading to unauthorized control or compromise of the server hosting Apache Gravitino.

However, since this vulnerability only occurs when using the H2 database (primarily for testing and local development) and Gravitino is typically deployed in internal environments, the overall severity is considered low.

Mitigation Strategies

To mitigate this vulnerability, users are recommended to upgrade Apache Gravitino to version 1.2.1, which contains the fix for this issue.

Since the vulnerability occurs only when using the H2 database, which is mainly for testing and local development, avoiding the use of H2 in production or internal environments can also reduce risk.

Detection Guidance

Detection of this vulnerability involves identifying attempts to exploit the testConnection API by supplying malicious H2 JDBC URLs containing the INIT parameter.

You can monitor network traffic or server logs for suspicious JDBC URLs that include the INIT parameter, which is used to execute arbitrary Java code.

For example, you might use commands to search logs for the presence of 'jdbc:h2:' URLs with 'INIT=' parameters.

  • Using grep on server logs: grep -i 'jdbc:h2:.*INIT=' /path/to/gravitino/logs/*
  • Using network monitoring tools like tcpdump or Wireshark to filter for HTTP requests containing 'jdbc:h2:' strings.
  • Example tcpdump command: tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep 'jdbc:h2:'

Additionally, ensure your Apache Gravitino version is upgraded to 1.2.1 or later to prevent exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-41042. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart