What is Apache HugeGraph-Server?
Apache HugeGraph is an open-source graph database system originally developed at Baidu and donated to the Apache Software Foundation. HugeGraph-Server is the core server component, providing a graph database engine and REST API based on the Apache TinkerPop Gremlin graph traversal language. It is used for social network analysis, knowledge graphs, fraud detection, and other applications requiring graph-structured data. HugeGraph instances are sometimes exposed directly to the internet or internal networks without adequate access control, as the API is designed to be accessible to application developers and analysts.
Overview
CVE-2024-27348 is an improper access control vulnerability (CWE-284) in Apache HugeGraph-Server that allows an unauthenticated remote attacker to execute arbitrary code. The vulnerability is in the Gremlin API endpoint — HugeGraph's graph traversal interface. When HugeGraph-Server is running without authentication enabled (which is the default in some configurations), or when the access control for the Gremlin API is insufficiently enforced, an attacker can submit Gremlin queries that invoke Java execution functions, achieving remote code execution on the server hosting HugeGraph. CISA added it to the KEV catalog in September 2024, five months after the April 2024 patch, confirming sustained exploitation of internet-exposed instances.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| Apache HugeGraph-Server | < 1.3.0 | 1.3.0 |
Technical Details
The improper access control (CWE-284) affects the HugeGraph Gremlin API endpoint (/gremlin or via the REST API). The Gremlin language is a graph traversal query language that also supports executing Java code through its scripting engine (Groovy-based in TinkerPop implementations). This is intentional for flexibility, but it means that unrestricted access to the Gremlin endpoint is equivalent to unrestricted code execution.
Attack vector:
- Attacker sends a POST request to the HugeGraph Gremlin API endpoint
- The Gremlin query includes a Java code execution invocation, such as:
Thread.currentThread().getContextClassLoader().loadClass("java.lang.Runtime").getMethod("exec", String.class).invoke(Thread.currentThread().getContextClassLoader().loadClass("java.lang.Runtime").getMethod("getRuntime").invoke(null), "id") - HugeGraph-Server processes the query and executes the embedded Java code
- The attacker receives command output or establishes a reverse shell
Default configuration risk: HugeGraph-Server in many versions did not require authentication by default, or had a simple admin account with a default password. Organizations that deployed HugeGraph without hardening the API access are directly exploitable.
1.3.0 mitigations: The 1.3.0 release added authentication enforcement for the Gremlin API and restricted the Java classes available to Gremlin scripts, reducing the exploitable attack surface.
Discovery
The vulnerability was identified through security research on Apache HugeGraph's Gremlin API. The combination of internet-exposed HugeGraph instances and the Gremlin endpoint's inherent code execution capability made this a notable target.
Exploitation Context
CISA added CVE-2024-27348 to the KEV catalog on September 18, 2024, five months after the April 2024 fix. The delay reflects the niche nature of HugeGraph: fewer organizations run it compared to major enterprise products, but those that do may have overlooked patching a graph database component. Security researchers documented mass scanning for HugeGraph REST API endpoints and Gremlin query interfaces following public disclosure, with exploitation occurring against internet-facing HugeGraph instances.
Remediation
- Upgrade to Apache HugeGraph-Server 1.3.0 or later immediately. The CISA deadline was October 9, 2024.
- Enable authentication on the HugeGraph REST API — HugeGraph 1.3.0 supports authentication via the
gremlin-driverconnection settings; ensureauth.authenticatoris configured. - Restrict network access to HugeGraph — the HugeGraph REST API (default port 8080) and Gremlin server (default port 8182) should only be accessible from application servers and authorized clients, not from the internet or general enterprise networks.
- Disable Gremlin script execution if graph traversal queries are sufficient — configure HugeGraph to restrict the Gremlin engine to disallow Java class invocations.
- Rotate HugeGraph admin credentials if the default credentials were in use.
- Audit HugeGraph access logs for Gremlin API requests containing Java class invocations,
exec,Runtime, orProcessreferences from the April–September 2024 exposure window.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2024-27348 |
| Vendor / Product | Apache — HugeGraph-Server |
| NVD Published | 2024-04-22 |
| NVD Last Modified | 2025-10-23 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-284 find similar ↗ |
| CISA KEV Added | 2024-09-18 |
| CISA KEV Deadline | 2024-10-09 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2024-04-22 | CVE published; Apache HugeGraph-Server 1.3.0 released with fix |
| 2024-09-18 | CISA adds to KEV (5-month gap — ongoing exploitation of internet-exposed instances) |
| 2024-10-09 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Apache HugeGraph-Server Security Advisory — CVE-2024-27348 | Vendor Advisory |
| Apache HugeGraph 1.3.0 Release Notes | Vendor Advisory |
| NVD — CVE-2024-27348 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |