Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote unauthenticated peer triggers DoS over the network with a simple malformed header (AV:N/AC:L/PR:N/UI:N); impact is availability-only via OOM/connection teardown, so C:N/I:N/A:H.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
2DescriptionCVE.org
Improper Input Validation vulnerability in Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ Stomp.
A remote unauthenticated peer that can reach an exposed STOMP connector can trigger denial-of-service behavior by sending a negative content-length. For the NIO STOMP transport, an attacker can keep streaming body bytes and grow the per-connection command buffer beyond configured limits to cause OOM. For the blocking STOMP protocol, an error will instead force abnormal transport exception handling for the affected connection and closure. This issue affects 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; Apache ActiveMQ Stomp: 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.
Articles & Coverage 1
AnalysisAI
Denial-of-service in Apache ActiveMQ STOMP connectors lets a remote peer that can reach an exposed STOMP port crash or exhaust the broker by sending a negative content-length value. On the NIO STOMP transport the attacker streams body bytes to grow the per-connection command buffer past configured limits and force an out-of-memory condition, while the blocking STOMP transport instead throws an abnormal transport exception that closes the affected connection. The flaw affects ActiveMQ, ActiveMQ All, and ActiveMQ Stomp before 5.19.8 and the 6.0.0-6.2.6 line; no public exploit identified at time of analysis and the issue is not listed in CISA KEV.
Technical ContextAI
Apache ActiveMQ is a widely used open-source JMS message broker, and STOMP (Simple Text Oriented Messaging Protocol) is one of its wire protocols, typically exposed on a dedicated connector (default port 61613). The vulnerability is a CWE-20 Improper Input Validation issue in how the STOMP frame parser handles the content-length header: a negative value is not rejected, so the length-based framing logic misbehaves. On the non-blocking NIO STOMP transport this lets an attacker keep feeding body bytes that accumulate in the per-connection command buffer beyond the configured maximum, driving JVM heap exhaustion; on the legacy blocking STOMP transport the same malformed length triggers an unhandled transport exception path that abnormally tears down the connection. Both ActiveMQ All (the uber-distribution) and the standalone ActiveMQ Stomp module share the affected parsing code.
RemediationAI
Vendor-released patch: upgrade to Apache ActiveMQ 6.2.7 (for the 6.x line) or 5.19.8 (for the 5.x line), which fix the improper validation of the STOMP content-length header; the same fixed versions apply to the ActiveMQ All and ActiveMQ Stomp distributions, per the Apache advisory at https://lists.apache.org/thread/fsjb26605syqr8xks249h8gkp86t55d2. If immediate patching is not possible, reduce exposure by disabling the STOMP connector entirely if it is not in use, or by firewalling/restricting the STOMP port (default 61613) so it is reachable only from trusted message-producing hosts rather than the public internet - the trade-off is that legitimate remote STOMP clients on untrusted networks will lose connectivity. Where feasible, place the broker behind a network proxy or load balancer that can enforce sane frame/size limits and front the connector with TLS and client authentication to limit who can open STOMP sessions; this adds operational overhead and does not fully eliminate the parsing flaw, so it is a stopgap until the upgrade is applied.
More in Apache Activemq
View allRemote code execution in Apache ActiveMQ Classic versions before 5.19.5 and 6.0.0-6.2.2 allows authenticated attackers t
Remote code execution in Apache ActiveMQ 5.x (before 5.19.6) and 6.x (before 6.2.5) allows authenticated attackers to by
Remote code execution in Apache ActiveMQ allows authenticated attackers with admin console access to inject malicious Sp
Privilege escalation via improper authorization in Apache ActiveMQ before 5.19.8 and 6.0.0 before 6.2.7 lets an authenti
Denial of service in Apache ActiveMQ (Client, broker, and All distributions) before 5.19.8 and 6.x before 6.2.7 lets a r
Remote denial of service in Apache ActiveMQ (versions 5.19.7 and 6.2.6) allows an unauthenticated attacker to exhaust br
Improper input validation in Apache ActiveMQ lets an attacker who can write or modify LDAP entries matching the broker's
Out-of-memory denial of service in Apache ActiveMQ allows unauthenticated remote attackers to exhaust broker memory via
Remote denial-of-service in Apache ActiveMQ 6.0.0 through 6.2.3 allows unauthenticated network attackers to crash the MQ
Stored XSS in Apache ActiveMQ and Apache ActiveMQ Web allows authenticated attackers to inject malicious HTML into JMS s
Improper path validation in Apache ActiveMQ Client and Broker allows authenticated users to traverse the classpath via c
Same weakness CWE-20 – Improper Input Validation
View allSame technique Information Disclosure
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-40284
GHSA-xjwq-9jw5-jf7w