What’s Vulnerable › Vulnerabilities
CVE-2021-4040
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-24 · updated 2026-06-17
- Weakness: CWE-400
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.
Affected products
- Apache Software Foundation Apache ActiveMQ Artemis: before 2.19.1 — fixed in 2.19.1
- AMQ Broker: before 7.10.0 — fixed in 7.10.0
How to fix
Upgrade to a fixed version: Apache Software Foundation Apache ActiveMQ Artemis 2.19.1; AMQ Broker 7.10.0. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/security/cve/CVE-2021-4040
- https://bugzilla.redhat.com/show_bug.cgi?id=2028254
- https://github.com/apache/activemq-artemis/pull/3871/commits
- https://issues.apache.org/jira/browse/ARTEMIS-3593
- https://access.redhat.com/security/cve/CVE-2021-4040
- https://bugzilla.redhat.com/show_bug.cgi?id=2028254
- https://github.com/apache/activemq-artemis/pull/3871/commits
- https://issues.apache.org/jira/browse/ARTEMIS-3593
Get alerted when CVE-2021-4040 or the next vulnerability affects your stack