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.
Published: 2026-07-08
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Unauthenticated callers can send a malicious H2 JDBC URL to the testConnection API in Apache Gravitino. The URL contains an INIT parameter that the H2 database invokes, causing the server to execute arbitrary Java code with the privileges of the Gravitino process. This flaw is catalogued as CWE‑20, Improper Input Validation, and allows an attacker to fully compromise the confidentiality, integrity, and availability of the server.

Affected Systems

Apache Gravitino versions before 1.2.1 are affected, provided the server is configured to use the H2 database engine. All releases in this series that include the testConnection endpoint and an H2 dependency are vulnerable. Deployments that have migrated to other databases or have H2 disabled are not susceptible.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.1, classifying it as Critical. However, the EPSS score of less than 1 % indicates a very low probability of exploitation at the time of analysis. Attackers must be able to reach the testConnection API, meaning the threat is primarily internal or from an untrusted network that gains connectivity to the Gravitino service. In environments where H2 is used only for testing or local development behind internal firewalls, practical risk is reduced, but the vulnerability remains high severity if the endpoint is exposed. The vulnerability is not listed in CISA KEV, indicating no known widespread exploitation, but its high CVSS score still warrants immediate patching.

Generated by OpenCVE AI on July 28, 2026 at 09:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache Gravitino to version 1.2.1 or later, which removes the vulnerable code path that processes malformed JDBC URLs.
  • Eliminate or disable the H2 database dependency in production deployments, or replace it with a production‑grade database engine to remove the attack vector altogether.
  • Restrict access to the testConnection API by enabling authentication, moving it behind a firewall, or applying network segmentation so only trusted services can invoke it.

Generated by OpenCVE AI on July 28, 2026 at 09:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache gravitino
Vendors & Products Apache
Apache gravitino

Wed, 08 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
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.
Title Apache Gravitino: 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
Weaknesses CWE-20
References

Subscriptions

Apache Gravitino
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-07-08T17:31:28.887Z

Reserved: 2026-04-16T11:19:50.383Z

Link: CVE-2026-41042

cve-icon Vulnrichment

Updated: 2026-07-08T17:31:28.887Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T09:30:19Z

Weaknesses
  • CWE-20

    Improper Input Validation