Skip to content
Threat Feed
critical advisory

Apache HugeGraph-Server: Remote Code Execution via Gremlin Query Injection (CVE-2024-27348)

CVE-2024-27348 is a critical RCE vulnerability in Apache HugeGraph-Server (<= 3.7.1) that allows attackers to execute arbitrary Java code via the /gremlin endpoint, facilitating the deployment of web shells.

CVE search metadata

CVE search record: CVE-2024-27348. Severity: critical. CVSS: 9.8. EPSS: 99.21%. KEV: no. Product: HugeGraph-Server (<= 3.7.1). Brief: Apache HugeGraph-Server: Remote Code Execution via Gremlin Query Injection (CVE-2024-27348). Brief link: https://feed.craftedsignal.io/briefs/2026-11-cve-2024-27348-hugegraph/

Triage facts

Revision 1
Applicability
HugeGraph-Server (<= 3.7.1)
Evidence
Unknown
Severity
Critical
Action
Immediate escalation
Sources
2 public sources
Freshness
Revision 1Nov 1, 07:59 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
B3Likely

CVE-2024-27348 is a critical Remote Code Execution vulnerability in Apache HugeGraph-Server. An attacker can submit a malicious Gremlin query to the /gremlin endpoint, leveraging Java reflection to achieve arbitrary code execution on the underlying host. Proof-of-concept toolkits are publicly available that demonstrate deploying a PHP web shell to /tmp/shell.php and initiating a PHP development server on port 4444 to provide persistent command-line access.

Attack Chain

  1. Reconnaissance: Identify target Apache HugeGraph-Server instance (typically port 8182).
  2. Initial Access: Send a crafted Gremlin query containing malicious Java reflection payloads to the /gremlin endpoint.
  3. Execution: Leverage Java reflection to execute system commands on the server.
  4. Persistence/Payload Deployment: Write a PHP web shell to the local filesystem (e.g., /tmp/shell.php).
  5. Payload Activation: Start a PHP development server on an arbitrary port (e.g., 4444) to host the web shell.
  6. Command and Control: Connect via a remote bind shell client to the hosted web shell for interactive command execution.

Recommendation

  • Upgrade Apache HugeGraph-Server to version 3.7.2 or later immediately.
  • Inspect the /tmp directory and web-accessible application directories for unauthorized PHP files or unexpected script execution.
  • Monitor network traffic for unexpected connections originating from the HugeGraph server, specifically looking for outbound connections to port 4444 or abnormal traffic patterns on the Gremlin API port.
  • Audit logs for the /gremlin endpoint to identify suspicious or highly anomalous query strings.

Immediate actions

Patch Apache HugeGraph-Server to 3.7.2 or later.

IT Operations 24h

Threat Hunt

Identify any web server access log entries containing /gremlin followed by suspicious Java keywords or shell commands.

T1190 high high confidence hunt now

Data: Web server access logs

Mitigations

Upgrade to version 3.7.2 or later

immediate IT Operations

CVE-2024-27348

Detection coverage 1

Detect Apache HugeGraph /gremlin RCE Attempt

critical

Detects suspicious POST requests to the /gremlin endpoint containing common Java reflection keywords or web shell deployment commands.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →