{"id":"CVE-2025-66168","aliases":["CVE-2025-66168","GHSA-c825-6ph3-4h84","BIT-ACTIVEMQ-2025-66168"],"related":[],"kind":"vulnerability","state":"published","title":"Apache ActiveMQ, Apache ActiveMQ All Module, Apache ActiveMQ MQTT Module: MQTT control packet remaining length field is not properly validated","summary":"WARNING:\n\nUsers of 6.x should upgrade to 6.2.4 or later as the fix was missed in previous 6.x releases.\n\nSee the  following for more details:\n https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt \n https://www.cve.org/CVERecord?id=CVE-2026-40046 \n\n\n\nOriginal Report:\n\nApache 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.\n\nThis issue affects Apache ActiveMQ: before 5.19.2, 6.0.0 to 6.1.8, and 6.2.0\n\nUsers are recommended to upgrade to version 5.19.2, 6.1.9, or 6.2.1, which fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"WARNING:\n\nUsers of 6.x should upgrade to 6.2.4 or later as the fix was missed in previous 6.x releases.\n\nSee the  following for more details:\n https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt \n https://www.cve.org/CVERecord?id=CVE-2026-40046 \n\n\n\nOriginal Report:\n\nApache 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.\n\nThis issue affects Apache ActiveMQ: before 5.19.2, 6.0.0 to 6.1.8, and 6.2.0\n\nUsers are recommended to upgrade to version 5.19.2, 6.1.9, or 6.2.1, which fixes the issue.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis issue affects Apache ActiveMQ: before 5.19.2, 6.0.0 to 6.1.8, and 6.2.0\n\nUsers are recommended to upgrade to version 5.19.2, 6.1.9, or 6.2.1, which fixes the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Apache ActiveMQ no valida correctamente el campo de longitud restante, lo que puede llevar a un desbordamiento durante la decodificación de paquetes malformados. Cuando ocurre este desbordamiento de entero, ActiveMQ puede calcular incorrectamente la longitud restante total y posteriormente malinterpretar la carga útil como múltiples paquetes de control MQTT, lo que hace que el broker sea susceptible a un comportamiento inesperado al interactuar con clientes no conformes. Este comportamiento viola la especificación MQTT v3.1.1, que restringe la longitud restante a un máximo de 4 bytes. El escenario ocurre en conexiones establecidas después del proceso de autenticación. Los brokers que no están habilitando conectores de transporte mqtt no se ven afectados.\n\nEste problema afecta a Apache ActiveMQ: antes de 5.19.2, 6.0.0 a 6.1.8, y 6.2.0\n\nSe recomienda a los usuarios actualizar a la versión 5.19.2, 6.1.9, o 6.2.1, que corrige el problema.","source":"nvd"}],"published":"2026-03-04T08:45:00.932Z","modified":"2026-09-10T03:50:38.840Z","severity":{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.19.2","status":"affected"},{"type":"semver","introduced":"6.0.0","fixed":"6.1.9","status":"affected"},{"type":"semver","introduced":"6.2.0","fixed":"6.2.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache ActiveMQ","package":"org.apache.activemq:apache-activemq","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"5.19.2","status":"affected"},{"type":"semver","introduced":"6.0.0","fixed":"6.1.9","status":"affected"},{"type":"semver","introduced":"6.2.0","fixed":"6.2.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache ActiveMQ All Module","package":"org.apache.activemq:activemq-all","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"5.19.2","status":"affected"},{"type":"semver","introduced":"6.0.0","fixed":"6.1.9","status":"affected"},{"type":"semver","introduced":"6.2.0","fixed":"6.2.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache ActiveMQ MQTT Module","package":"org.apache.activemq:activemq-mqtt","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.19.2"}],"ecosystem":"Maven","package":"org.apache.activemq:apache-activemq","purl":"pkg:maven/org.apache.activemq/apache-activemq","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.1.9"}],"ecosystem":"Maven","package":"org.apache.activemq:apache-activemq","purl":"pkg:maven/org.apache.activemq/apache-activemq","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.1"}],"ecosystem":"Maven","package":"org.apache.activemq:apache-activemq","purl":"pkg:maven/org.apache.activemq/apache-activemq","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.19.2"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-all","purl":"pkg:maven/org.apache.activemq/activemq-all","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.1.9"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-all","purl":"pkg:maven/org.apache.activemq/activemq-all","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.1"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-all","purl":"pkg:maven/org.apache.activemq/activemq-all","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.19.2"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-mqtt","purl":"pkg:maven/org.apache.activemq/activemq-mqtt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.1.9"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-mqtt","purl":"pkg:maven/org.apache.activemq/activemq-mqtt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.1"}],"ecosystem":"Maven","package":"org.apache.activemq:activemq-mqtt","purl":"pkg:maven/org.apache.activemq/activemq-mqtt","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.19.2"},{"status":"affected","introduced":"6.0.0","lastAffected":"6.1.8"},{"status":"affected","version":"6.2.0"}],"vendor":"apache","product":"activemq","cpe":"cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.19.2"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.1.9"},{"type":"semver","introduced":"6.2.0","status":"affected","fixed":"6.2.1"}],"ecosystem":"Bitnami","package":"activemq","purl":"pkg:bitnami/activemq","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/13n8mkrb2jf2y6yyhpgrkmpqcm7djyto","tags":["advisory","mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40046","tags":["related","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt","tags":["related","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/03/5","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66168","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/activemq","tags":["package"],"sources":["ghsa"]}],"credits":["Gai Tanaka <641.work123@gmail.com>"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-04T20:27:42.920Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66168","url":"https://www.cve.org/CVERecord?id=CVE-2025-66168","licence":"CVE Terms of Use","modified":"2026-04-10T10:52:27.564Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c825-6ph3-4h84","url":"https://github.com/advisories/GHSA-c825-6ph3-4h84","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:38.840Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66168","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66168","licence":"Public domain","modified":"2026-06-17T09:56:26.157Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ACTIVEMQ-2025-66168","url":"https://osv.dev/vulnerability/BIT-ACTIVEMQ-2025-66168","licence":"Apache-2.0","modified":"2026-09-08T08:45:07.712Z"}],"updatedAt":"2026-11-25T22:59:11.830Z","epss":{"score":0.0082,"percentile":0.58374,"date":"2026-12-01T12:00:22.000Z"}}