CVE-2025-27533 — activemq-openwire-legacy
Fix: apache/activemq@fc4372bCVE-2025-27533 is a CWE-789 vulnerability in org.apache.activemq:activemq-openwire-legacy. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.apache.activemq:activemq-openwire-legacy — see the affected versions and patch details below.
Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-27533.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.apache.activemq:activemq-openwire-legacy☕org.apache.activemq:activemq-client☕org.apache.activemq:activemq-openwire-legacy☕org.apache.activemq:activemq-openwire-legacy☕org.apache.activemq:activemq-openwire-legacy☕org.apache.activemq:activemq-client☕org.apache.activemq:activemq-client☕org.apache.activemq:activemq-clientReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.activemq:activemq-openwire-legacy | all versions | 5.16.8org.apache.activemq:activemq-openwire-legacy:5.16.8 |
| ☕Maven | org.apache.activemq:activemq-client | all versions | 5.16.8org.apache.activemq:activemq-client:5.16.8 |
| ☕Maven | org.apache.activemq:activemq-openwire-legacy | ≥ 5.17.0&&< 5.17.7 | 5.17.7org.apache.activemq:activemq-openwire-legacy:5.17.7 |
| ☕Maven | org.apache.activemq:activemq-openwire-legacy | ≥ 5.18.0&&< 5.18.7 | 5.18.7org.apache.activemq:activemq-openwire-legacy:5.18.7 |
| ☕Maven | org.apache.activemq:activemq-openwire-legacy | ≥ 6.0.0&&< 6.1.6 | 6.1.6org.apache.activemq:activemq-openwire-legacy:6.1.6 |
| ☕Maven | org.apache.activemq:activemq-client | ≥ 5.17.0&&< 5.17.7 | 5.17.7org.apache.activemq:activemq-client:5.17.7 |
Affected Products
activemqapacheResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache ActiveMQ 6.1.6 - Denial of Service (DOS)
by Abdualhadi khalifa · May 9, 2025
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.activemq:activemq-openwire-legacy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.activemq:activemq-openwire-legacy to 5.16.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-27533 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ Broker 7.13.2 | activemq-openwire-legacy | RHSA-2025:17567 |
Frequently Asked Questions
Is CVE-2025-27533 in your dependencies?
Find it across Maven, including transitive dependencies.