CVE-2021-4040 org.apache.activemq:artemis-core-client Vulnerable to Out-of-Bounds Write

Medium 5.3 Published Updated

An attacker can cause a partial denial of service in AMQ Broker by sending maliciously crafted messages that trigger an out-of-memory condition.

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

What is CVE-2021-4040?

CVE-2021-4040 is a medium-severity denial of service vulnerability in AMQ Broker, published on 24 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in AMQ Broker. This issue can cause a partial interruption to the availability of AMQ Broker via an Out of memory (OOM) condition. This flaw allows an attacker to partially disrupt availability to the broker through a sustained attack of maliciously crafted messages. The highest threat from this vulnerability is system availability.

Weakness: CWE-787, CWE-400

Which versions are affected by CVE-2021-4040?

2 open source packages ship an affected version, including org.apache.activemq:artemis-core-client. It affects 2 products.

PackageAffectedFixed in
org.apache.activemq:artemis-core-client MavenAll versions2.19.1
org.apache.activemq:artemis-core-client MavenAll versions2.19.1

Products include Apache Artemis, Redhat Amq Broker.

How do I fix CVE-2021-4040?

Upgrade org.apache.activemq:artemis-core-client to 2.19.1 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-2021-4040 being exploited?

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

Sources

Also known as GHSA-gf8c-j759-86mg.

Is CVE-2021-4040 in your software?

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

Check your SBOMs for free