CVE-2025-27533
Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| 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 |
| 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 |
Blast radius
100% of the dependent artifacts (3,231) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 28,243 |
| 2 hops | 83,344 |
| 3 hops | 178,828 |
| 4 hops | 212,006 |
| 5 hops | 59,188 |
| 6 hops | 20,630 |
Most used dependents
- org.apache.activemq » activemq-broker625 usages
- org.apache.camel.kafkaconnector » camel-kafka-connector616 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.activemq » activemq-kahadb-store236 usages
- org.apache.activemq » activemq-all234 usages
- org.apache.activemq » activemq-camel206 usages
- org.apache.activemq » activemq-pool205 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- org.apache.tomee » openejb-core193 usages
- org.wso2.carbon.automation » org.wso2.carbon.automation.extensions159 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.apache.openejb » openejb-core148 usages
- org.wso2.carbon.automationutils » org.wso2.carbon.integration.common.extensions144 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-27533
- Webhttps://github.com/apache/activemq/commit/fc4372b9f0f72b8b5eed917f0019c5cea45c5d06
- Packagehttps://github.com/apache/activemq
- Webhttps://issues.apache.org/jira/browse/AMQ-6596
- Webhttps://lists.apache.org/thread/8hcm25vf7mchg4zbbhnlx2lc5bs705hg
- Webhttps://lists.debian.org/debian-lts-announce/2025/06/msg00020.html
- Webhttp://www.openwall.com/lists/oss-security/2025/05/06/1
