CVE-2017-12174 Uncontrolled Resource Consumption in Artemis and HornetQ

High 7.5 Published Updated

Attackers can cause denial of service via heap exhaustion by sending unexpected multicast messages to Artemis or HornetQ configured with UDP or JGroups discovery.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-12174?

CVE-2017-12174 is a high-severity denial of service vulnerability in Redhat Jboss Enterprise Application Platform, published on 7 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-400

Which versions are affected by CVE-2017-12174?

4 open source packages ship an affected version, including org.apache.activemq:artemis-native and org.hornetq:hornetq-server. It affects 3 products.

PackageAffectedFixed in
org.apache.activemq:artemis-native MavenAll versions2.4.0
org.apache.activemq:artemis-native MavenAll versions2.4.0
org.hornetq:hornetq-server MavenAll versions2.4.0.Final
org.hornetq:hornetq-server MavenAll versions2.4.0.Final

Products include Apache Artemis, Redhat Hornetq, Redhat Jboss Enterprise Application Platform.

How do I fix CVE-2017-12174?

Upgrade org.apache.activemq:artemis-native to 2.4.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2017-12174 being exploited?

There is no known exploitation of CVE-2017-12174 in the wild and no public exploit code.

All Redhat Jboss Enterprise Application Platform vulnerabilities

Sources

Also known as GHSA-gc96-h5pr-839j.

Is CVE-2017-12174 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free