Vulnerabilities in pkg:maven/org.apache.hugegraph/hugegraph-api

PACKAGE
Advisory Identifier: GHSA-29rc-vq7f-x335
Advisory Summary

CVE-2024-27348 is a CRITICAL (CVSS 9.8) command execution vulnerability (CWE-284: Improper Access Control) affecting Apache HugeGraph-Server libraries in the Maven ecosystem. The issue involves command execution in gremlin. Remediation is available by upgrading affected packages to version 1.3.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.hugegraph/hugegraph-api

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.hugegraph/hugegraph-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-29rc-vq7f-x335 CVE-2024-27348 CRITICAL Apache HugeGraph-Server: Command execution in gremlin
GHSA-6mgp-p75r-vhjm CVE-2024-27349 HIGH Apache HugeGraph-Server: Bypass whitelist in Auth mode

CVE-2024-27348 at a Glance

CVE Identifier CVE-2024-27348
GHSA Identifier GHSA-29rc-vq7f-x335
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-284: Improper Access Control
Affected Product Apache HugeGraph-Server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-27348

To remediate this vulnerability, upgrade all affected Apache HugeGraph-Server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.hugegraph:hugegraph-api fixed: 1.3.0
<dependency>
    <groupId>org.apache.hugegraph</groupId>
    <artifactId>hugegraph-api</artifactId>
    <version>1.3.0</version>
</dependency>
org.apache.hugegraph:hugegraph-core fixed: 1.3.0
<dependency>
    <groupId>org.apache.hugegraph</groupId>
    <artifactId>hugegraph-core</artifactId>
    <version>1.3.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.hugegraph

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-27348, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.hugegraph

Analyze the terminal output to locate any version of Apache HugeGraph-Server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.hugegraph command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Apache HugeGraph-Server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2024-27348 Affected Apache HugeGraph-Server Versions

2 component(s)
Fixed Versions:
1.3.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hugegraph:hugegraph-api
Maven
≥ 1.0.0
< 1.3.0
1.3.0
org.apache.hugegraph:hugegraph-core
Maven
≥ 1.0.0
< 1.3.0
1.3.0

References

Frequently Asked Questions

What is CVE-2024-27348?
CVE-2024-27348 is a security vulnerability in Apache HugeGraph-Server involving Command execution in gremlin under CWE-284: Improper Access Control.
Which Apache HugeGraph-Server versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: org.apache.hugegraph:hugegraph-api, org.apache.hugegraph:hugegraph-core.
What version fixes CVE-2024-27348?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hugegraph-api affected?
Yes, org.apache.hugegraph:hugegraph-api is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
Is hugegraph-core affected?
Yes, org.apache.hugegraph:hugegraph-core is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What is the CVSS score of CVE-2024-27348?
CVE-2024-27348 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H.
What CWE is associated with CVE-2024-27348?
CVE-2024-27348 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2024-27348?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.hugegraph'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-29rc-vq7f-x335",
  "modified" : "2025-10-22T19:25:17Z",
  "published" : "2024-04-22T15:30:41Z",
  "aliases" : [ "CVE-2024-27348" ],
  "summary" : "Apache HugeGraph-Server: Command execution in gremlin",
  "details" : "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\n\nUsers are recommended to upgrade to version 1.3.0 with Java11 & enable the Auth system, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hugegraph:hugegraph-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hugegraph:hugegraph-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27348"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/incubator-hugegraph/commit/713d88d1fd9953c3c3e3f130389501910ba40e1d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/incubator-hugegraph"
  }, {
    "type" : "WEB",
    "url" : "https://hugegraph.apache.org/docs/config/config-authentication/#configure-user-authentication"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/nx6g6htyhpgtzsocybm242781o8w5kq9"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-27348"
  }, {
    "type" : "WEB",
    "url" : "https://www.vicarius.io/vsociety/posts/remote-code-execution-vulnerability-in-apache-hugegraph-server-cve-2024-27348"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/04/22/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284", "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-22T18:37:52Z",
    "nvd_published_at" : "2024-04-22T14:15:07Z"
  }
}