GHSA-2gh6-wc3m-g37f: Hermes management Remote Code Execution Vulnerability

CRITICAL
CVSS 9.8
CWE-1395
Published
Advisory Summary

GHSA-2gh6-wc3m-g37f is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Hermes management libraries in the Maven ecosystem. The issue involves hermes-management is vulnerable to rce due to apache commons-jxpath. Remediation is available by upgrading affected packages to version 2.2.9.

GHSA-2gh6-wc3m-g37f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2gh6-wc3m-g37f
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product Hermes management
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).

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 GHSA-2gh6-wc3m-g37f

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

pl.allegro.tech.hermes:hermes-management fixed: 2.2.9
<dependency>
    <groupId>pl.allegro.tech.hermes</groupId>
    <artifactId>hermes-management</artifactId>
    <version>2.2.9</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=pl.allegro.tech.hermes

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-2gh6-wc3m-g37f, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=pl.allegro.tech.hermes

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

Note: The mvn dependency:tree -Dincludes=pl.allegro.tech.hermes 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-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Hermes management, 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

### Impact hermes-management is vulnerable to RCE when it processes user-controlled data due to using Apache commons-jxpath. ### Patches Upgrade Hermes to at least hermes-2.2.9 ### References https://hackinglab.cz/en/blog/remote-code-execution-in-jxpath-library-cve-2022-41852/

GHSA-2gh6-wc3m-g37f Affected Hermes management Versions

1 component(s)
Fixed Versions:
2.2.9
Product / Package Ecosystem Affected Versions Fixed Version
pl.allegro.tech.hermes:hermes-management
Maven
≥ 0.8.2
< 2.2.9
2.2.9

References

Frequently Asked Questions

What is GHSA-2gh6-wc3m-g37f?
GHSA-2gh6-wc3m-g37f is a security vulnerability in Hermes management involving hermes-management is vulnerable to RCE due to Apache commons-jxpath under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which Hermes management versions are affected?
Affected versions include releases prior to 2.2.9 across affected packages: pl.allegro.tech.hermes:hermes-management.
What version fixes GHSA-2gh6-wc3m-g37f?
Upgrading to 2.2.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hermes-management affected?
Yes, pl.allegro.tech.hermes:hermes-management is affected in releases prior to 2.2.9. Upgrade your dependency to 2.2.9 or later.
What is the CVSS score of GHSA-2gh6-wc3m-g37f?
GHSA-2gh6-wc3m-g37f 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.
What CWE is associated with GHSA-2gh6-wc3m-g37f?
GHSA-2gh6-wc3m-g37f is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check Maven dependencies for GHSA-2gh6-wc3m-g37f?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=pl.allegro.tech.hermes'. 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-2gh6-wc3m-g37f",
  "modified" : "2026-08-31T22:59:09Z",
  "published" : "2024-09-17T19:29:24Z",
  "aliases" : [ ],
  "summary" : "hermes-management is vulnerable to RCE due to Apache commons-jxpath",
  "details" : "### Impact\nhermes-management is vulnerable to RCE when it processes user-controlled data due to using Apache commons-jxpath.\n\n### Patches\nUpgrade Hermes to at least hermes-2.2.9\n\n### References\nhttps://hackinglab.cz/en/blog/remote-code-execution-in-jxpath-library-cve-2022-41852/",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A: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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "pl.allegro.tech.hermes:hermes-management"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.2"
      }, {
        "fixed" : "2.2.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/allegro/hermes/security/advisories/GHSA-2gh6-wc3m-g37f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/allegro/hermes/commit/72ecc5aa41e37fd614443dd35d9200b66a61afb1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/allegro/hermes/commit/92d4ad0cf6868ba784707772b78e129fedff7a31"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/allegro/hermes"
  }, {
    "type" : "WEB",
    "url" : "https://hackinglab.cz/en/blog/remote-code-execution-in-jxpath-library-cve-2022-41852"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T19:29:24Z",
    "nvd_published_at" : null
  }
}