CVE-2026-40046: Apache activemq Apache ActiveMQ, Apache ActiveMQ All, Vulnerability
MODERATECVE-2026-40046 is a MODERATE (CVSS 5.4) apache activemq, apache activemq all, vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Apache activemq libraries in the Maven ecosystem. The issue involves apache activemq, apache activemq all, apache activemq mqtt vulnerable to integer overflow or wraparound. Remediation is available by upgrading affected packages to version 6.2.4.
CVE-2026-40046 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-40046
To remediate this vulnerability, upgrade all affected Apache activemq dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apache-activemq</artifactId>
<version>6.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>6.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-mqtt</artifactId>
<version>6.2.4</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.activemq
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-40046, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.activemq
Analyze the terminal output to locate any version of Apache activemq in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.2.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.activemq command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Apache activemq, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40046 Affected Apache activemq Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.activemq:apache-activemq
|
Maven |
≥ 6.0.0
< 6.2.4
|
6.2.4
|
|
org.apache.activemq:activemq-all
|
Maven |
≥ 6.0.0
< 6.2.4
|
6.2.4
|
|
org.apache.activemq:activemq-mqtt
|
Maven |
≥ 6.0.0
< 6.2.4
|
6.2.4
|
References
Frequently Asked Questions
What is CVE-2026-40046?
Which Apache activemq versions are affected?
What version fixes CVE-2026-40046?
Is apache-activemq affected?
Is activemq-all affected?
What is the CVSS score of CVE-2026-40046?
What CWE is associated with CVE-2026-40046?
How can I check Maven dependencies for CVE-2026-40046?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xvqc-pp94-fmpx",
"modified" : "2026-04-10T21:35:56Z",
"published" : "2026-04-09T18:31:27Z",
"aliases" : [ "CVE-2026-40046" ],
"summary" : "Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT vulnerable to Integer Overflow or Wraparound",
"details" : "Integer Overflow or Wraparound vulnerability in Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT.\n\nThe 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.\n\nUsers 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:apache-activemq"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:activemq-all"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:activemq-mqtt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40046"
}, {
"type" : "WEB",
"url" : "https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/zdntj5rcgjjzrpow84o339lzldy68zrg"
}, {
"type" : "WEB",
"url" : "https://www.cve.org/CVERecord?id=CVE-2025-66168"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-190" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-10T14:11:25Z",
"nvd_published_at" : "2026-04-09T17:16:31Z"
}
}