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

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.38%, higher than 89% of CVEs (2026-12-01)
- Published: 2022-08-24T15:13:07.000Z
- Modified: 2026-06-17T04:18:56.357Z
- Also known as: GHSA-gf8c-j759-86mg
- Weaknesses: CWE-400, CWE-787
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- AMQ Broker: Fixed in v2.19.1, v2.20.0
- org.apache.activemq:artemis-core-client (Maven): before 2.19.1
- redhat amq_broker: before 7.10.0
- apache artemis: before 2.19.1

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2028254> (issue-tracking, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2021-4040> (vendor-advisory, web)
- <https://issues.apache.org/jira/browse/ARTEMIS-3593> (patch, third-party-advisory, web)
- <https://github.com/apache/activemq-artemis/pull/3871/commits> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4040> (advisory)
- <https://github.com/apache/activemq-artemis/pull/3862> (web)
- <https://github.com/apache/activemq-artemis/pull/3871> (web)
- <https://github.com/apache/activemq-artemis/pull/3871/commits/153d2e9a979aead8dff95fbc91d659ecc7d0fb82> (web)
- <https://github.com/apache/activemq-artemis> (package)

## Sources

- CVE List: [CVE-2021-4040](https://www.cve.org/CVERecord?id=CVE-2021-4040), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gf8c-j759-86mg](https://github.com/advisories/GHSA-gf8c-j759-86mg), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-4040](https://nvd.nist.gov/vuln/detail/CVE-2021-4040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4040 · Whole record: https://cve.day/CVE-2021-4040.json · Rebuilt by cve.day 2026-11-25T22:58:07.781Z
