# CVE-2025-27533: Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/AU:Y/R:A/V:D/RE:M/U:Red`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: High; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: High; AU: Y; R: A; V: D; RE: M; U: Red
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 7.23% (percentile 95, 2026-11-26)
- **CWE:** CWE-789
- **Aliases:** BIT-activemq-2025-27533, EDB-52288, GHSA-whxr-3p84-rf3c
- **Published:** 2025-05-07T08:59:00.249Z
- **Modified:** 2026-09-10T03:50:25.005Z

## Who should check

- Projects that depend on Maven package org.apache.activemq:activemq-openwire-legacy (\< 5.16.8)
- Projects that depend on Maven package org.apache.activemq:activemq-client (\< 5.16.8)
- Anyone running Apache Software Foundation Apache ActiveMQ \>= 6.0.0, \< 6.1.6; \>= 5.18.0, \< 5.18.7; \>= 5.17.0, \< 5.17.7; \>= 5.16.0, \< 5.16.8

## 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 and fixed versions

- Maven `org.apache.activemq:activemq-openwire-legacy`: affected \< 5.16.8; fixed 5.16.8, 5.17.7, 5.18.7, 6.1.6 (osv)
- Maven `org.apache.activemq:activemq-client`: affected \< 5.16.8; fixed 5.16.8, 5.17.7, 5.18.7, 6.1.6 (osv)
- Apache Software Foundation Apache ActiveMQ: \>= 6.0.0, \< 6.1.6; \>= 5.18.0, \< 5.18.7; \>= 5.17.0, \< 5.17.7; \>= 5.16.0, \< 5.16.8 (cvelist)

## Mitigation

- Upgrade org.apache.activemq:activemq-openwire-legacy to one of 5.16.8, 5.17.7, 5.18.7, 6.1.6 (or later in the same release line).
- Upgrade org.apache.activemq:activemq-client to one of 5.16.8, 5.17.7, 5.18.7, 6.1.6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27533. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27533.md
Affected: org.apache.activemq:activemq-openwire-legacy < 5.16.8; org.apache.activemq:activemq-client < 5.16.8
Fixed in: 5.16.8, 5.17.7, 5.18.7, 6.1.6

Steps:
1. Search this machine and project for org.apache.activemq:activemq-openwire-legacy (Maven), org.apache.activemq:activemq-client (Maven), Apache Software Foundation Apache ActiveMQ: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27533 being exploited?

There is no confirmed exploitation: CVE-2025-27533 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 7.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-27533?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-27533?

org.apache.activemq:activemq-openwire-legacy \< 5.16.8; org.apache.activemq:activemq-client \< 5.16.8.

### Is there a fix for CVE-2025-27533?

Yes. Fixed in 5.16.8, 5.17.7, 5.18.7, 6.1.6. Upgrade org.apache.activemq:activemq-openwire-legacy to one of 5.16.8, 5.17.7, 5.18.7, 6.1.6 (or later in the same release line). Upgrade org.apache.activemq:activemq-client to one of 5.16.8, 5.17.7, 5.18.7, 6.1.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-27533?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/8hcm25vf7mchg4zbbhnlx2lc5bs705hg>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-27533>
- patch: <https://github.com/apache/activemq/commit/fc4372b9f0f72b8b5eed917f0019c5cea45c5d06>
- exploit: <https://www.exploit-db.com/exploits/52288>
- other: <http://www.openwall.com/lists/oss-security/2025/05/06/1>
- other: <https://lists.debian.org/debian-lts-announce/2025/06/msg00020.html>
- other: <https://github.com/apache/activemq>
- other: <https://issues.apache.org/jira/browse/AMQ-6596>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27533>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-whxr-3p84-rf3c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/52288>

HTML: <https://flawdb.com/CVE-2025-27533> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27533>
