REDHAT-BUG-2494847: Input Validation
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache ActiveMQto a version that resolves this vulnerability.Fixed in 6.2.7 - Upgrade
Upgrade
Apache ActiveMQto a version that resolves this vulnerability.Fixed in 5.19.8
Event History
Frequently Asked Questions
Which deployments are exposed to remote attack?
Deployments with an exposed STOMP connector that a remote unauthenticated peer can reach are exposed. The issue is triggered through that connector by sending a negative content-length value.
How does the impact differ between NIO and blocking STOMP transports?
On the NIO STOMP transport, an attacker can continuously stream body bytes and grow the per-connection command buffer beyond configured limits, potentially causing an out-of-memory condition. On the blocking STOMP protocol, the malformed input causes abnormal transport exception handling and closes the affected connection.
Which versions need remediation?
Affected releases are Apache ActiveMQ, Apache ActiveMQ All, and Apache ActiveMQ Stomp versions before 5.19.8, plus versions from 6.0.0 before 6.2.7. Upgrade to 5.19.8 or 6.2.7 to fix the issue.