Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Gravitino testConnection API
-
DeliverySubmit malicious H2 JDBC URL
-
ExploitH2 INIT parameter parsed
-
ExecutionArbitrary Java executed on server
-
ImpactFull server compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires that the target Gravitino instance be configured to use the H2 database backend (per the advisory, 'this issue only happens when using H2'), which is chiefly a testing/local-development configuration rather than a production default - this is the key limiting factor. Given the vector (AV:N/AC:L/PR:N/UI:N), no authentication or user interaction is needed once an H2-backed instance is network-reachable via the testConnection API. The dominant real-world limiter is deployment: Gravitino is typically placed on internal networks, so an attacker must already have network reach to the API, and non-H2 backends are not affected at all. |
| Impact | Signals conflict and must be weighed together. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:N = 9.1) portrays a trivially exploitable unauthenticated network RCE, and SSVC agrees the technical impact is 'total' and the attack is 'automatable' - a serious combination. However, SSVC exploitation is 'none' (no observed exploitation), there is no CISA KEV listing, no EPSS score was provided, and no public POC is identified, so this is not currently a widespread-exploitation event. Critically, the vendor states the bug 'only happens when using H2,' which is a non-default, testing-oriented backend, and that Gravitino is normally internal-only - both of which sharply reduce realistic exposure and are not reflected in the AC:L rating. Note also an internal inconsistency: the vector lists A:N even though arbitrary code execution would typically compromise availability, suggesting the base score understates impact type while overstating attack surface. Net assessment: high-severity-if-applicable but conditional - prioritize only where an H2-backed Gravitino instance is network-reachable. |
| Exploit ScenarioDerived | An attacker who can reach a network-exposed, H2-backed Gravitino instance sends a single unauthenticated request to the testConnection API containing an H2 JDBC URL with a malicious INIT parameter. H2 executes the embedded statements at connection time, running attacker-supplied Java code on the server. Because CVSS rates this AV:N/AC:L/PR:N and SSVC marks it automatable, the request requires no user interaction and could be scripted, though no public POC is currently known. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 08, 2026
Remote code execution in Apache Gravitino before 1.2.1 allows unauthenticated callers to abuse the testConnection API by submitting a crafted H2 JDBC URL whose INIT parameter runs arbitrary Java on the server. The flaw only manifests when Gravitino is backed by the H2 database - a configuration primarily used for testing and local development - and CISA SSVC rates technical impact as total and exploitation as automatable, though no public exploit has surfaced. Fixed in 1.2.1; because Gravitino is usually deployed on internal networks and H2 is not the production default, the vendor characterizes real-world severity as low despite the 9.1 CVSS score.
Earlier versions of this analysis (2)
Remote code execution in Apache Gravitino before 1.2.1 allows unauthenticated callers to run arbitrary Java code on the server by submitting a malicious H2 JDBC URL to the testConnection API, which abuses H2's INIT connection parameter to execute code at connection time. The flaw carries a CVSS of 9.1 and SSVC rates its technical impact as total and automatable, but it is only reachable when Gravitino is backed by H2 - a database the vendor notes is used chiefly for testing and local development. No public exploit has been identified at time of analysis, and the vendor characterizes real-world severity as low given typical internal-only deployment.
Remote code execution in Apache Gravitino before 1.2.1 allows unauthenticated network callers to execute arbitrary Java code by supplying a crafted H2 JDBC URL containing a malicious INIT parameter to the testConnection API. The H2 database engine's INIT parameter triggers Java code execution during connection initialization, giving the attacker server-level code execution within the JVM process. No public exploit has been identified at time of analysis, and the vendor rates overall severity as low given that H2 is primarily a testing-only connector and Gravitino is typically deployed in internal environments.
RemediationAI
Upgrade to Apache Gravitino 1.2.1, which fixes the issue (Vendor-released patch: 1.2.1); this is the primary and recommended action per the Apache advisory at https://lists.apache.org/thread/vdh88wc6j5b38v65ncb111wbbnkf6bvm. If immediate patching is not possible, the most effective compensating control is to stop using the H2 backend and migrate to a production database (e.g. MySQL/PostgreSQL), since the flaw only triggers with H2 - with the trade-off of a backend migration effort. Additionally, restrict network access to the Gravitino API and specifically the testConnection endpoint to trusted management networks or authenticated proxies, keeping the service off untrusted networks (trade-off: may disrupt automation or tooling that calls the API remotely). Do not expose H2-backed instances to shared or internet-facing networks.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Gravitino is a metadata lake / data-catalog service that federates metadata across data sources; it exposes REST APIs including a testConnection endpoint used to validate backend connectivity. The H2 database (an embedded Java SQL engine) supports an INIT connection parameter in its JDBC URL that executes SQL - and, via H2 features such as CREATE ALIAS ... AS with Java source, arbitrary Java code - at connection time. Because Gravitino passes an attacker-influenced JDBC URL to H2 without validating or restricting it, this is a classic CWE-20 (Improper Input Validation) failure that converts an untrusted URL into server-side code execution. The affected component per CPE is cpe:2.3:a:apache_software_foundation:apache_gravitino, all versions prior to 1.2.1.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Unauthenticated network RCE (PR:N, AV:N) with full code execution impacting C/I/A:H, but AC:H because it depends on the non-default, attacker-uncontrolled H2 backend configuration.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
5DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
Apache Gravitino versions before 1.2.1 contain an unauthenticated remote code execution vulnerability affecting organizations that deploy Gravitino with H2 database backends. While the technical severity is critical, real-world exposure is limited to development and testing environments typically isolated on internal networks, as H2 is not the production database default. Organizations should prioritize upgrading to version 1.2.1 if Gravitino is deployed in their infrastructure.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-42221
GHSA-2q68-xwfj-2rpc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB