CVE-2026-50734: Apache ActiveMQ Pre-Auth Memory Exhaustion DoS Vulnerability
Apache ActiveMQ has a vulnerability in how it handles initial connection setup with clients. An attacker on the network can send a specially crafted message during the handshake phase that tricks the broker into trying to allocate an unreasonably large amount of memory. Because this validation happens before the attacker is even authenticated, they don't need credentials. If successful, the broker runs out of memory and crashes, leaving it unable to serve legitimate users. This is a straightforward denial-of-service attack that requires only network access and no special privileges.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-789
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-07-02
NVD description (verbatim)
Memory Allocation with Excessive Size Value vulnerability in Apache ActiveMQ Client, Apache ActiveMQ, Apache ActiveMQ All. An unauthenticated network attacker can cause a broker DoS by sending a crafted WireFormatInfo frame with a malicious large size value. The value is not validate and causes the broker to attempt allocation during pre-auth negotiation which can trigger OOM and crash the broker. This issue affects Apache ActiveMQ Client: before 5.19.8, from 6.0.0 before 6.2.7; Apache ActiveMQ: before 5.19.8, from 6.0.0 before 6.2.7; Apache ActiveMQ All: before 5.19.8, from 6.0.0 before 6.2.7. Users are recommended to upgrade to version 6.2.7 or 5.19.8, which fixes the issue.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the WireFormatInfo frame processing during pre-authentication negotiation in Apache ActiveMQ. The affected code fails to validate the size value contained in a crafted WireFormatInfo frame, allowing an unauthenticated network attacker to specify an excessively large allocation size. When the broker attempts to allocate memory based on this unvalidated value, it triggers an out-of-memory (OOM) condition that crashes the broker process. The flaw is rooted in CWE-789 (Memory Allocation with Excessive Size Value) and is exploitable without prior authentication or user interaction.
Business impact
An attacker can render an ActiveMQ broker completely unavailable by crashing it. Since ActiveMQ is often central to message queuing, async processing, and enterprise integration, a successful attack disrupts all dependent applications and workflows. The impact extends beyond the broker itself—any application relying on message queuing experiences service degradation or failure. Recovery requires manual broker restart and potential investigation of what triggered the crash. For organizations running ActiveMQ in production, this creates both immediate availability risk and operational overhead.
Affected systems
Apache ActiveMQ versions before 5.19.8, and versions 6.0.0 through 6.2.6 are vulnerable. The issue affects the ActiveMQ broker itself, the ActiveMQ Client library, and the ActiveMQ All distribution. Any deployment running these versions on a network accessible to potential attackers is at risk, including cloud deployments and on-premises installations with network exposure.
Exploitability
This vulnerability is highly exploitable in practical scenarios. The attack requires only network connectivity to the ActiveMQ broker port—no authentication, no valid credentials, and no user interaction. The attacker simply sends a single malformed frame during the connection handshake. The simplicity of the attack vector combined with the immediate and severe impact (broker crash) makes this a significant risk. However, the vulnerability is not currently listed in the CISA KEV catalog, suggesting limited evidence of active, widespread exploitation in the wild at the time of publication.
Remediation
Upgrade to patched versions immediately: ActiveMQ 5.19.8 or later for the 5.x line, or ActiveMQ 6.2.7 or later for the 6.x line. Both releases include input validation for the WireFormatInfo frame size value. Verify the version upgrade was successful by checking the broker log and version output. If immediate patching is not possible, restrict network access to the ActiveMQ port using firewall rules or network segmentation to limit exposure to trusted clients only.
Patch guidance
Apply the vendor patch by upgrading to Apache ActiveMQ 5.19.8 (for 5.x deployments) or 6.2.7 (for 6.x deployments). Review the official Apache ActiveMQ release notes and security advisory to confirm the patch addresses this specific vulnerability before deploying to production. Test the upgrade in a non-production environment first to verify compatibility with your message producers and consumers. After patching, restart the broker and validate that existing message queues and connections work as expected.
Detection guidance
Monitor ActiveMQ broker logs for OOM errors or unexpected crashes during the pre-authentication phase. Network-level detection can identify repeated connection attempts with unusually large size values in WireFormatInfo frames, though this requires deep packet inspection of the OpenWire protocol. Alert on broker restarts or unexpected terminations, particularly if correlated with external network connections. Implement baseline monitoring of broker memory usage to detect anomalous allocation attempts before they trigger OOM.
Why prioritize this
This vulnerability scores HIGH (7.5 CVSS) due to the combination of network accessibility, lack of authentication requirements, and severe impact (complete broker denial of service). While not yet in active widespread exploitation according to KEV data, the attack is trivial to execute and requires minimal sophistication. Organizations should treat this as a priority patch—particularly those running ActiveMQ in internet-facing or multi-tenant environments where the attacker surface is larger.
Risk score, explained
The CVSS 3.1 score of 7.5 reflects: Attack Vector = Network (full Internet accessibility), Attack Complexity = Low (no special conditions needed), Privileges Required = None (unauthenticated attacker), User Interaction = None (no user action required), and Availability Impact = High (complete broker crash). The score correctly penalizes the ease of exploitation and total loss of service, while noting that confidentiality and integrity are not directly impacted by this particular flaw.
Frequently asked questions
Do I need valid ActiveMQ credentials to exploit this vulnerability?
No. The vulnerability exists in the pre-authentication handshake phase, before the broker validates any credentials. An attacker only needs network access to the broker port.
What should I do if I cannot patch immediately?
Implement strict firewall rules to restrict inbound connections to the ActiveMQ port to only trusted clients and internal networks. This significantly reduces the attack surface while you plan and schedule the patch deployment. Also consider enabling detailed logging to detect any suspicious connection attempts.
Will this vulnerability affect my message data or security of my messages?
This vulnerability only causes denial of service by crashing the broker. It does not allow an attacker to read, modify, or decrypt message data. However, the availability impact is severe—all message processing stops until the broker is restarted.
How can I confirm my version is vulnerable?
Check your ActiveMQ version with 'activemq --version' or by inspecting the ActiveMQ home directory. If you are running 5.x before 5.19.8 or 6.x before 6.2.7, you are vulnerable and should upgrade immediately.
This analysis is provided for informational purposes and reflects the vulnerability details as of the publication date. Security conditions and threat landscapes evolve; organizations should verify all patch versions, compatibility, and deployment guidance directly with the official Apache ActiveMQ security advisory and release notes. This content does not constitute legal advice or a guarantee of security. Always test patches in non-production environments before deployment. For the latest threat intelligence and KEV status, consult CISA and the vendor's official security channels. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-49975HIGHApache HTTP Server Memory Allocation DoS Vulnerability (2.4.17–2.4.67)
- CVE-2026-53916HIGHApache ActiveMQ Memory Exhaustion DoS (STOMP NIO)
- CVE-2026-53917HIGHApache ActiveMQ Memory Allocation DoS Vulnerability
- CVE-2026-10142HIGHkafka-python Denial-of-Service in Protocol Parser
- CVE-2026-11946HIGHopen62541 Memory Exhaustion via GetEndpoints Discovery Service
- CVE-2026-33592HIGHopen62541 OPC UA Denial of Service via Unbuffered FindServersRequest
- CVE-2026-40006HIGHApache IoTDB Unauthenticated Memory Exhaustion Denial of Service
- CVE-2026-48502HIGHMessagePack for C# Stack Overflow in Timestamp Parsing