CVE-2026-40046: Apache Software Foundation Apache ActiveMQ
High severity, CVSS 7.5. EPSS: 0.6% probability of exploitation activity in the next 30 days.
Integer Overflow or Wraparound vulnerability in Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT. The fix for "CVE-2025-66168: MQTT control packet remaining length field is not properly validated" was only applied to 5.19.2 (and future 5.19.x) releases but was missed for all 6.0.0+ versions. This issue affects Apache ActiveMQ: from 6.0.0 before 6.2.4; Apache ActiveMQ All: from 6.0.0 before 6.2.4; Apache ActiveMQ MQTT: from 6.0.0 before 6.2.4. Users are recommended to upgrade to version 6.2.4 or a 5.19.x version starting with 5.19.2 or later (currently latest is 5.19.5), which fixes the issue.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Apache Software Foundation Apache ActiveMQ, from 6.0.0, before 6.2.4: fixed in 6.2.4
- Apache Software Foundation Apache ActiveMQ All, from 6.0.0, before 6.2.4: fixed in 6.2.4
- Apache Software Foundation Apache ActiveMQ Mqtt, from 6.0.0, before 6.2.4: fixed in 6.2.4
Affected products
- Apache Software Foundation Apache ActiveMQ: from 6.0.0, before 6.2.4 (fixed in 6.2.4)
- Apache Software Foundation Apache ActiveMQ All: from 6.0.0, before 6.2.4 (fixed in 6.2.4)
- Apache Software Foundation Apache ActiveMQ Mqtt: from 6.0.0, before 6.2.4 (fixed in 6.2.4)
Affected packages
- org.apache.activemq:activemq-all (Maven)
- org.apache.activemq:activemq-mqtt (Maven)
- org.apache.activemq:apache-activemq (Maven)
Published 2026-04-09. Last modified 2026-10-26.