Skip to main content

Apache Gravitino CVE-2026-41042

| EUVDEUVD-2026-42221 CRITICAL
Improper Input Validation (CWE-20)
2026-07-08 apache GHSA-2q68-xwfj-2rpc
9.1
CVSS 3.1 · Vendor: apache
Share

Severity by source

Vendor (apache) PRIMARY
9.1 LOW
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI
8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

7
Analysis Updated
Jul 08, 2026 - 16:28 vuln.today
v3 (cvss_changed)
Analysis Updated
Jul 08, 2026 - 16:28 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jul 08, 2026 - 16:22 vuln.today
cvss_changed
Severity Changed
Jul 08, 2026 - 16:22 NVD
LOW CRITICAL
CVSS changed
Jul 08, 2026 - 16:22 NVD
9.1 (LOW) 9.1 (CRITICAL)
Patch available
Jul 08, 2026 - 13:01 EUVD
Analysis Generated
Jul 08, 2026 - 12:44 vuln.today

DescriptionCVE.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.

AnalysisAI

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.

Technical ContextAI

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.

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.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Share

CVE-2026-41042 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy