Arbitrary Code Injection Affecting org.apache.gravitino:gravitino-catalog-jdbc-common package, versions [,1.2.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEGRAVITINO-17954865
  • published12 Jul 2026
  • disclosed8 Jul 2026
  • creditJunjie Li

Introduced: 8 Jul 2026

CVE-2026-41042  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.apache.gravitino:gravitino-catalog-jdbc-common to version 1.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the testConnection API when a malicious H2 JDBC URL is supplied, which leverages the H2 INIT parameter. An attacker can execute arbitrary Java code on the server by sending a crafted request to the API endpoint. This is only exploitable if the application is configured to use H2 as the database backend.

CVSS Base Scores

version 4.0
version 3.1