MediumGHSA-whxr-3p84-rf3cBIT-activemq-2025-27533CVE-2025-27533

Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation

Published 7 May 2025 · Updated 10 Sept 2026

Is your project on an affected org.apache.activemq:activemq-openwire-legacy?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<5.16.8
Fixed in
5.16.8
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-openwire-legacy -DdepVersion=5.16.8 -DforceVersion=true
Affected
<5.16.8
Fixed in
5.16.8
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-client -DdepVersion=5.16.8 -DforceVersion=true
Affected
>=5.17.0 <5.17.7
Fixed in
5.17.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-openwire-legacy -DdepVersion=5.17.7 -DforceVersion=true
Affected
>=5.18.0 <5.18.7
Fixed in
5.18.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-openwire-legacy -DdepVersion=5.18.7 -DforceVersion=true
Affected
>=6.0.0 <6.1.6
Fixed in
6.1.6
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-openwire-legacy -DdepVersion=6.1.6 -DforceVersion=true
Affected
>=5.17.0 <5.17.7
Fixed in
5.17.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-client -DdepVersion=5.17.7 -DforceVersion=true
Affected
>=5.18.0 <5.18.7
Fixed in
5.18.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-client -DdepVersion=5.18.7 -DforceVersion=true
Affected
>=6.0.0 <6.1.6
Fixed in
6.1.6
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.activemq:activemq-client -DdepVersion=6.1.6 -DforceVersion=true

Details

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.

Is GHSA-whxr-3p84-rf3c in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.activemq:activemq-openwire-legacy, and gives you the command that fixes it.

More advisories for org.apache.activemq:activemq-openwire-legacy

  • CriticalCVE-2023-46604Apache ActiveMQ is vulnerable to Remote Code Execution · 27 Oct 2023
org.apache.activemq:activemq-openwire-legacy security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.