Medium

Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation

  • Disclosed: 07.05.2025
  • Updated: 11.10.2026 13:20

Memory Allocation with Excessive Size Value vulnerability in Apache ActiveMQ.

During unmarshalling of OpenWire commands the size value of buffers was not properly validated which could lead to excessive memory allocation and be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on the availability of the ActiveMQ broker when not using mutual TLS connections. This issue affects Apache ActiveMQ: from 6.0.0 before 6.1.6, from 5.18.0 before 5.18.7, from 5.17.0 before 5.17.7, before 5.16.8. ActiveMQ 5.19.0 is not affected.

Users are recommended to upgrade to version 6.1.6+, 5.19.0+, 5.18.7+, 5.17.7, or 5.16.8 or which fixes the issue.

Existing users may implement mutual TLS to mitigate the risk on affected brokers.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.activemq:activemq-client < 5.16.8, >= 5.17.0, < 5.17.7, >= 5.18.0, < 5.18.7, >= 6.0.0, < 6.1.6 5.16.8, 5.17.7, 5.18.7, 6.1.6
Java / Kotlin (Maven) org.apache.activemq:activemq-openwire-legacy < 5.16.8, >= 5.17.0, < 5.17.7, >= 5.18.0, < 5.18.7, >= 6.0.0, < 6.1.6 5.16.8, 5.17.7, 5.18.7, 6.1.6

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-789
Platform
Java / Kotlin (Maven)
Package
org.apache.activemq:activemq-client, org.apache.activemq:activemq-openwire-legacy
Disclosed
07.05.2025
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-whxr-3p84-rf3c - CC BY 4.0

Vulnerability history: org.apache.activemq:activemq-client

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (18) in the archive
Total entries
18
First → latest
10.2018 04.2026
Without a fix
0
Exploited in attacks
2

Severity breakdown

  • Critical 4
  • High 4
  • Medium 10

Disclosures per year

  1. 2018: 1
  2. 2019: 2
  3. 2020: 0
  4. 2021: 0
  5. 2022: 11
  6. 2023: 1
  7. 2024: 0
  8. 2025: 1
  9. 2026: 2
Severity:
  1. High · 7.5 CVE-2026-39304 < 5.19.4, >= 6.0.0, < 6.2.4 5.19.4, 6.2.4
  2. Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation this entry
    Medium · 7.5 CVE-2025-27533 < 5.16.8, >= 5.17.0, < 5.17.7, >= 5.18.0, < 5.18.7, >= 6.0.0, < 6.1.6 5.16.8, 5.17.7, 5.18.7, 6.1.6
  3. Critical · 10.0 Exploited in attacks CVE-2023-46604 < 5.15.16, >= 5.16.0, < 5.16.7, >= 5.17.0, < 5.17.6, >= 5.18.0, < 5.18.3 5.15.16, 5.16.7, 5.17.6, 5.18.3
  4. Critical · 9.8 CVE-2014-3600 >= 5.0.0, < 5.10.1 5.10.1
  5. Critical · 9.8 Exploited in attacks CVE-2016-3088 >= 5.0.0, < 5.14.0 5.14.0
  6. Critical · 9.8 CVE-2015-5254 >= 5.0.0, < 5.11.3, >= 5.12.0, < 5.12.2 5.11.3, 5.12.2
  7. High · 7.4 CVE-2018-11775 < 5.15.6 5.15.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.