CVE-2026-40046

7.5

Apache · ActiveMQ

A vulnerability in Apache ActiveMQ allows for an integer overflow or wraparound due to improper validation of the MQTT control packet remaining length field.

Executive summary

An integer overflow vulnerability in Apache ActiveMQ, specifically affecting versions 6.0.0 through 6.2.3, poses a significant denial of service risk to messaging infrastructure.

Vulnerability

This vulnerability is an integer overflow (CWE-190) occurring within the MQTT control packet handling. The vulnerability is exploitable by an unauthenticated attacker who can send a maliciously crafted MQTT packet to trigger a service crash.

Business impact

The primary risk associated with this vulnerability is a denial of service, which can disrupt critical messaging queues and downstream application processing. Given the CVSS score of 7.5, this high-severity flaw requires immediate attention to prevent operational downtime. Organizations relying on ActiveMQ for real-time data exchange may experience significant service degradation if this vulnerability is exploited against their messaging brokers.

Remediation

Immediate Action: Upgrade to Apache ActiveMQ version 6.2.4 or transition to a 5.19.x release (version 5.19.2 or later) to resolve the underlying validation flaw.

Proactive Monitoring: Review application and system logs for repeated connection drops or abrupt service restarts associated with MQTT traffic.

Compensating Controls: Implement network-level filtering to restrict access to the MQTT management ports to trusted IP addresses only, which reduces the attack surface while awaiting patch deployment.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

The vulnerability represents a clear risk to the availability of message-oriented middleware. Administrators should prioritize the upgrade to the specified patched versions across all production environments to eliminate the risk of service interruption. Failure to patch leaves the broker susceptible to remote denial of service attacks.

More Apache CVEs

Sources

Originally found and disclosed by Adrien Bernard, per the CVE Program record.