MODERATE 5.4

CVE-2026-40046

Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT vulnerable to Integer Overflow or Wraparound

Description

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.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.apache.activemq » activemq-all
>= 6.0.0, < 6.2.4
6.2.4
org.apache.activemq » activemq-mqtt
>= 6.0.0, < 6.2.4
6.2.4
org.apache.activemq » apache-activemq
>= 6.0.0, < 6.2.4
6.2.4

Blast radius

3affected artifacts
45affected versions
43dependent artifacts (est.)
451dependent versions

16% of the dependent artifacts (7) still pull an affected version in their latest release.

DepthDependent versions
Direct
144
2 hops
91
3 hops
18
4 hops
36
5 hops
144
6 hops
18

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.