Memory Allocation with Excessive Size Value vulnerability in Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ Stomp.
An unauthenticated client that opens a STOMP NIO connection can send header bytes that never terminate which makes the broker buffer them without limit, exhausting the JVM heap.
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.
An unbounded memory allocation flaw was found in the STOMP NIO codec of Apache ActiveMQ Classic. An unauthenticated remote client can open a STOMP NIO connection and send an unterminated header, causing the broker to buffer input without limit and potentially exhaust the JVM heap, resulting in a denial of service. This affects Apache ActiveMQ Classic before 5.19.8 and versions 6.0.0 before 6.2.7, including the activemq-stomp and activemq-all artifacts.