Apache Software Foundation Apache Gravitino
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
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.1
Fixed in 1.2.1
Mitigation
Upgrade Apache Gravitino to 1.2.1 or later.
References
- Vendor advisory lists.apache.org/thread/vdh88wc6j5b38v65ncb111wbbnkf…
Timeline
Days relative to CVE publicationFirst public PoC 40 days after publication; not in CISA KEV. First PoC: Lulztigre/cve-2026-41042 (created 17 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Lulztigre/cve-2026-41042 | 17 Aug 2026 +40 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Apache Gravitino < 1.2.1 - Unauthenticated Remote Code Execution | 29 Aug 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/metalakes
- Body markers
"name":"test_ml"inapplication/json- Ports
- 8090
- Seen in
- 1 repo: Lulztigre/cve-2026-41042
- Evidence
- Lulztigre/cve-2026-41042/README.md:57
POST /api/metalakes/{var}/catalogs/testConnection
- Key headers
Accept: application/vnd.gravitino.v1+json- Content-Type
application/json- Ports
- 8090, 9000
- Seen in
- 1 repo: Lulztigre/cve-2026-41042
- Evidence
- Lulztigre/cve-2026-41042/poc.py:104
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/metalakes(?:[?#].*)?$
(?i)^/api/metalakes/[^/?#]*/catalogs/testConnection(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8090] (msg:"GG PoC-Monitor CVE-2026-41042 Apache Software Foundation Apache Gravitino exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/metalakes"; http.request_body; content:"|22|name|22|:|22|test_ml|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-41042; classtype:web-application-attack; sid:9461423; rev:1;)
alert http any any -> $HOME_NET [8090,9000] (msg:"GG PoC-Monitor CVE-2026-41042 Apache Software Foundation Apache Gravitino exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/catalogs/testConnection"; http.uri; content:"/api/metalakes/"; http.header; content:"Accept: application/vnd.gravitino.v1+json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-41042; classtype:web-application-attack; sid:9558483; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Gravitino exploit attempt (CVE-2026-41042)
id: gg-pocmon-cve-2026-41042-9461423
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-41042. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-41042
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/metalakes'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.41042
title: Apache Software Foundation Apache Gravitino exploit attempt (CVE-2026-41042)
id: gg-pocmon-cve-2026-41042-9558483
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-41042. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-41042
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/catalogs/testConnection'
- '/api/metalakes/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.41042