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

Source: https://junglewise.ai/threats/cve-2021-4040-org-apache-activemq-artemis-core-client-vulnerable-to-out-of  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-25  
License: CC BY 4.0 with a link back

CVE-2021-4040 · Severity: low · CVSS 3.1 · Published 2022-08-25

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

Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-4040 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-4040 being exploited in the wild.

**How severe is CVE-2021-4040?** Low severity, with a CVSS score of 3.1, published 25 August 2022.

**Which products and versions are affected?** org.apache.activemq:artemis-core-client (Maven) ECOSYSTEM:introduced=0,fixed=2.19.1.

**Is there a fix for CVE-2021-4040?** Yes. org.apache.activemq:artemis-core-client (Maven): upgrade to 2.19.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-4040?** Check whether you run org.apache.activemq:artemis-core-client (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.activemq:artemis-core-client (Maven): upgrade to 2.19.1 or later

  ```sh
  # set org.apache.activemq:artemis-core-client to 2.19.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.activemq:artemis-core-client (Maven) ECOSYSTEM:introduced=0,fixed=2.19.1

## Identifiers

- CVE-2021-4040
- GHSA-gf8c-j759-86mg

## Related threats

- [Apache ActiveMQ Artemis DoS via uncontrolled memory consumption](https://junglewise.ai/threats/cve-2022-23913-apache-activemq-artemis-dos-via-uncontrolled-memory-consumption)
