{"schemaVersion":3,"id":"CVE-2025-66168","aliases":["UBUNTU-CVE-2025-66168","DEBIAN-CVE-2025-66168","CGA-25rr-2jq3-3cxh","CGA-2v3f-q9mx-vcgg","CGA-378h-2hhc-wmmp","CGA-578h-3v4v-w4vq","CGA-8gmh-px7g-c974","CGA-8mxx-f373-qg7x","CGA-9fm7-9j3r-xr76","CGA-9pm8-mvxc-qgxm","CGA-cwhh-ggpf-79f9","CGA-ffr6-vvpx-chmv","CGA-h465-mh6p-x6pr","CGA-j3fw-238r-56f3","CGA-j97v-5983-vfrh","CGA-jcx7-rcc3-x6qp","CGA-jm35-mcrc-vggj","GHSA-c825-6ph3-4h84","BIT-activemq-2025-66168","CGA-qjfw-vc5h-2gf5","CGA-w54q-wjv3-g9gp","CGA-wf7p-87gr-qx48","CGA-wm3v-7h53-j83j","CGA-wxc6-82w6-m25g"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-03-04T08:45:00.932Z","modified":"2026-04-10T10:52:27.564Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":7.2,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":7.2,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00794,"percentile":0.55667,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.01399999999999995,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0078},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00794,"percentile":0.55667}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0078,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00794,"percentile":0.55667}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"apache software foundation","product":"apache activemq","name":"Apache ActiveMQ","label":"apache activemq","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_activemq"},{"vendor":"apache software foundation","product":"apache activemq all module","name":"Apache ActiveMQ All Module","label":"apache activemq all module","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_activemq_all_module"},{"vendor":"apache software foundation","product":"apache activemq mqtt module","name":"Apache ActiveMQ MQTT Module","label":"apache activemq mqtt module","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_activemq_mqtt_module"},{"vendor":"apache","product":"activemq","name":"ActiveMQ","label":"activemq","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, ≤ 6.1.8","noFixRecorded":false,"fixedIn":null},{"text":"6.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, ≤ 6.1.8 | 6.2.0","eol":{"isEol":false,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"6.2","label":"6.2","eolFrom":null,"isLts":false,"isMaintained":true,"latestVersion":"6.2.10"},"product":{"name":"apache-activemq","label":"Apache ActiveMQ Classic","category":"server-app"}},"hubHref":"/vendor/apache/activemq"},{"vendor":"chainguard","product":"apache-activemq-6.1","name":"apache-activemq-6.1","label":"apache-activemq-6.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/apache-activemq-6.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"apache-activemq-fips-6.1","name":"apache-activemq-fips-6.1","label":"apache-activemq-fips-6.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/apache-activemq-fips-6.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"geoserver-2.27-community","name":"geoserver-2.27-community","label":"geoserver-2.27-community","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/geoserver-2.27-community","purlType":"apk","versions":[{"text":"< 2.27.5-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.27.5-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"geoserver-2.28-community","name":"geoserver-2.28-community","label":"geoserver-2.28-community","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/geoserver-2.28-community","purlType":"apk","versions":[{"text":"< 2.28.2-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.28.2-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"activemq","name":"activemq","label":"activemq","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/activemq","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"activemq","name":"activemq","label":"activemq","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/activemq","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.apache.activemq","product":"activemq-all","name":"org.apache.activemq:activemq-all","label":"activemq-all","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.activemq/activemq-all","purlType":"maven","versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":null},{"vendor":"org.apache.activemq","product":"activemq-mqtt","name":"org.apache.activemq:activemq-mqtt","label":"activemq-mqtt","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.activemq/activemq-mqtt","purlType":"maven","versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":null},{"vendor":"org.apache.activemq","product":"apache-activemq","name":"org.apache.activemq:apache-activemq","label":"apache-activemq","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.activemq/apache-activemq","purlType":"maven","versions":[{"text":"< 5.19.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.19.2 | ≥ 6.0.0, < 6.1.9 | ≥ 6.2.0, < 6.2.1","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/13n8mkrb2jf2y6yyhpgrkmpqcm7djyto","label":"lists.apache.org/thread/13n8mkrb2jf2y6yyhpgrkmpqcm7djyto","hostname":"lists.apache.org","tags":["Vendor Advisory","REPORT","Advisory","WEB","Mailing List"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40046","label":"www.cve.org/CVERecord?id=CVE-2026-40046","hostname":"www.cve.org","tags":["Related","WEB"]},{"url":"https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt","label":"activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt","hostname":"activemq.apache.org","tags":["Related","Advisory","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/03/5","label":"www.openwall.com/lists/oss-security/2026/03/03/5","hostname":"www.openwall.com","tags":["REPORT","WEB","Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-66168","label":"ubuntu.com/security/CVE-2025-66168","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-66168","label":"www.cve.org/CVERecord?id=CVE-2025-66168","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-66168","label":"security-tracker.debian.org/tracker/CVE-2025-66168","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://repo.maven.apache.org/maven2","label":"repo.maven.apache.org/maven2","hostname":"repo.maven.apache.org","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66168.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66168.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66168","label":"nvd.nist.gov/vuln/detail/CVE-2025-66168","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/activemq","label":"github.com/apache/activemq","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-Q463-QQ6H-M3VJ"]},"timeline":[{"kind":"published","date":"2026-03-04T08:45:00.932Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-10T10:52:27.564Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:00:25.337Z","stale":false,"partial":false}}