Vulnerabilities in pkg:maven/org.hornetq/hornetq-server
PACKAGECVE-2017-12174 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Hornetq server libraries in the Maven ecosystem. The issue involves uncontrolled resource consumption in artemis and hornetq. Remediation is available by upgrading affected packages to version 2.4.0.Final, 2.4.0.
pkg:maven/org.hornetq/hornetq-server
Vulnerability advisories affecting package pkg:maven/org.hornetq/hornetq-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gc96-h5pr-839j | CVE-2017-12174 | HIGH | Uncontrolled Resource Consumption in Artemis and HornetQ |
CVE-2017-12174 at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix CVE-2017-12174
To remediate this vulnerability, upgrade all affected Hornetq 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.
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-server</artifactId>
<version>2.4.0.Final</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-native</artifactId>
<version>2.4.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.hornetq
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2017-12174, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.hornetq
Analyze the terminal output to locate any version of Hornetq server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.0.Final), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.hornetq 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Hornetq 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
CVE-2017-12174 Affected Hornetq server Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.hornetq:hornetq-server
|
Maven |
< 2.4.0.Final
|
2.4.0.Final
|
|
org.apache.activemq:artemis-native
|
Maven |
< 2.4.0
|
2.4.0
|
References
Frequently Asked Questions
What is CVE-2017-12174?
Which Hornetq server versions are affected?
What version fixes CVE-2017-12174?
Is hornetq-server affected?
Is artemis-native affected?
What is the CVSS score of CVE-2017-12174?
What CWE is associated with CVE-2017-12174?
How can I check Maven dependencies for CVE-2017-12174?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gc96-h5pr-839j",
"modified" : "2022-07-01T21:42:10Z",
"published" : "2022-05-13T01:11:53Z",
"aliases" : [ "CVE-2017-12174" ],
"summary" : "Uncontrolled Resource Consumption in Artemis and HornetQ",
"details" : "It was found that when Artemis and HornetQ before 2.4.0 are configured with UDP discovery and JGroups discovery a huge byte array is created when receiving an unexpected multicast message. This may result in a heap memory exhaustion, full GC, or OutOfMemoryError.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.hornetq:hornetq-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.0.Final"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.4.0.Beta3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:artemis-native"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12174"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0268"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0269"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0270"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0271"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0275"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0478"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0479"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0480"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0481"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-12174"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d%40%3Ccommits.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d@%3Ccommits.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088%40%3Ccommits.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088@%3Ccommits.activemq.apache.org%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-01T21:42:10Z",
"nvd_published_at" : "2018-03-07T22:29:00Z"
}
}