Home / Apache Software Foundation / Apache ActiveMQ / CVE-2025-66168
CVE-2025-66168: is it exploited, and which versions of Apache Software Foundation Apache ActiveMQ are affected and fixed?
CVE-2025-66168 is an integer overflow vulnerability in Apache Software Foundation Apache ActiveMQ. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: org.apache.activemq:apache-activemq before 5.19.2, org.apache.activemq:apache-activemq from 6.0.0 before 6.1.9, org.apache.activemq:apache-activemq from 6.2.0 before 6.2.1 and 6 more (GitHub advisory GHSA-c825-6ph3-4h84). Fixed in 5.19.2, 6.1.9 and 6.2.1 (GitHub advisory GHSA-c825-6ph3-4h84). Severity: Medium (5.4, CVSS 3.1, from apache).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2025-66168?
Apache ActiveMQ, Apache ActiveMQ All Module, Apache ActiveMQ MQTT Module: MQTT control packet remaining length field is not properly validated
WARNING: Users of 6.x should upgrade to 6.2.4 or later as the fix was missed in previous 6.x releases. See the following for more details: https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt https://www.cve.org/CVERecord?id=CVE-2026-40046 Original Report: Apache ActiveMQ does not properly validate the remaining length field which may lead to an overflow during the decoding of malformed packets. When this integer overflow occurs, ActiveMQ may incorrectly compute the total Remaining Length and subsequently misinterpret the payload as multiple MQTT control packets which makes the broker susceptible to unexpected behavior when interacting with non-compliant clients. This behavior violates the MQTT v3.1.1 specification, which restricts Remaining Length to a maximum of 4 bytes. The scenario occurs on established connections after the authentication process. Brokers that are not enabling mqtt transport connectors are not impacted. This issue affects Apache ActiveMQ: before 5.19.2, 6.0.0 to 6.1.8, and 6.2.0 Users are recommended to upgrade to version 5.19.2, 6.1.9, or 6.2.1, which fixes the issue.
From the CVE record by apache, last updated April 10, 2026, 10:52 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache ActiveMQ org.apache.activemq:apache-activemq | before 5.19.2 from 6.0.0 before 6.1.9 from 6.2.0 before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 |
| Apache Software Foundation | Apache ActiveMQ All Module org.apache.activemq:activemq-all | before 5.19.2 from 6.0.0 before 6.1.9 from 6.2.0 before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 |
| Apache Software Foundation | Apache ActiveMQ MQTT Module org.apache.activemq:activemq-mqtt | before 5.19.2 from 6.0.0 before 6.1.9 from 6.2.0 before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 |
As the CVE record by apache states it, last updated April 10, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.activemq:apache-activemq | < 5.19.2 | 5.19.2 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:apache-activemq | >= 6.0.0, < 6.1.9 | 6.1.9 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:apache-activemq | >= 6.2.0, < 6.2.1 | 6.2.1 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-all | < 5.19.2 | 5.19.2 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-all | >= 6.0.0, < 6.1.9 | 6.1.9 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-all | >= 6.2.0, < 6.2.1 | 6.2.1 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-mqtt | < 5.19.2 | 5.19.2 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-mqtt | >= 6.0.0, < 6.1.9 | 6.1.9 | GHSA-c825-6ph3-4h84 |
| Maven | org.apache.activemq:activemq-mqtt | >= 6.2.0, < 6.2.1 | 6.2.1 | GHSA-c825-6ph3-4h84 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 10, 2026. Summary: Apache ActiveMQ is Vulnerable to Integer Overflow or Wraparound.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | activemq | before 5.19.2 | application |
| apache | activemq | from 6.0.0 through 6.1.8 | application |
| apache | activemq | 6.2.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 09:56 UTC.
How severe is CVE-2025-66168?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | apache |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-66168 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 4, 2026)
- EPSS
- 0.82% probability of exploitation activity in the next 30 days, percentile 58.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://lists.apache.org/thread/13n8mkrb2jf2y6yyhpgrkmpqcm7djyto vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2026-40046 related
- https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt related
- http://www.openwall.com/lists/oss-security/2026/03/03/5
Who found and reported it?
- Gai Tanaka (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 21, 2025
- Published
- March 4, 2026, 08:45 UTC
- CVE record updated
- April 10, 2026, 10:52 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 09:56 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache ActiveMQ?
- Apr 7, 2026CVE-2026-34197 Apache Software Foundation Apache ActiveMQ Broker: improper input validation exploited
- Oct 27, 2023CVE-2023-46604 Apache Software Foundation Apache ActiveMQ: deserialization of untrusted data exploited
- Nov 4, 2026CVE-2026-108500 Apache Software Foundation Apache ActiveMQ: improper input validation
- Nov 4, 2026CVE-2026-108946 Apache Software Foundation Apache ActiveMQ: improper input validation
- Nov 4, 2026CVE-2026-111822 Apache Software Foundation Apache ActiveMQ: missing authentication for a critical function
- Nov 4, 2026CVE-2026-111821 Apache Software Foundation Apache ActiveMQ: improper input validation
- Nov 4, 2026CVE-2026-108949 Apache Software Foundation Apache ActiveMQ: memory leak
- Sep 9, 2026CVE-2026-74761 Apache Software Foundation Apache ActiveMQ Broker: improper input validation
Questions about CVE-2025-66168
Is CVE-2025-66168 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.82% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache ActiveMQ are affected by CVE-2025-66168?
org.apache.activemq:apache-activemq before 5.19.2, org.apache.activemq:apache-activemq from 6.0.0 before 6.1.9, org.apache.activemq:apache-activemq from 6.2.0 before 6.2.1, org.apache.activemq:activemq-all before 5.19.2, org.apache.activemq:activemq-all from 6.0.0 before 6.1.9, org.apache.activemq:activemq-all from 6.2.0 before 6.2.1 and 3 more, per the GitHub advisory GHSA-c825-6ph3-4h84. The tables above give every range the sources list.
Which version fixes CVE-2025-66168?
5.19.2, 6.1.9 and 6.2.1, per the GitHub advisory GHSA-c825-6ph3-4h84. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-66168?
Medium (5.4, CVSS 3.1, from apache). The severity table above shows each score with its source.
Where is the official record of CVE-2025-66168?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.