GHSA-2gh6-wc3m-g37f: Hermes management Remote Code Execution Vulnerability
CRITICALGHSA-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
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).
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.
<dependency>
<groupId>pl.allegro.tech.hermes</groupId>
<artifactId>hermes-management</artifactId>
<version>2.2.9</version>
</dependency>
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
GHSA-2gh6-wc3m-g37f Affected Hermes management Versions
1 component(s)| 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?
Which Hermes management versions are affected?
What version fixes GHSA-2gh6-wc3m-g37f?
Is hermes-management affected?
What is the CVSS score of GHSA-2gh6-wc3m-g37f?
What CWE is associated with GHSA-2gh6-wc3m-g37f?
How can I check Maven dependencies for GHSA-2gh6-wc3m-g37f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}