cve.bz

CVE-2025-66168 apache activemq: Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highEPSS 0.9%Fix available

High (8.8) in apache activemq. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.activemq:apache-activemq 5.19.2, 6.1.9, 6.2.1.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 60th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-03-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66168 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66168?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66168?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-66168 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache ActiveMQbefore 5.19.2
Apache Software Foundation Apache ActiveMQfrom 6.0.0 before 6.1.9
Apache Software Foundation Apache ActiveMQfrom 6.2.0 before 6.2.1
Apache Software Foundation Apache ActiveMQ All Modulebefore 5.19.2
Apache Software Foundation Apache ActiveMQ All Modulefrom 6.0.0 before 6.1.9
Apache Software Foundation Apache ActiveMQ All Modulefrom 6.2.0 before 6.2.1
Apache Software Foundation Apache ActiveMQ MQTT Modulebefore 5.19.2
Apache Software Foundation Apache ActiveMQ MQTT Modulefrom 6.0.0 before 6.1.9
Apache Software Foundation Apache ActiveMQ MQTT Modulefrom 6.2.0 before 6.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:apache-activemq<5.19.25.19.2
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:apache-activemq>=6.0.0 <6.1.96.1.9
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:apache-activemq>=6.2.0 <6.2.16.2.1
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-all<5.19.25.19.2
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-all>=6.0.0 <6.1.96.1.9
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-all>=6.2.0 <6.2.16.2.1
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-mqtt<5.19.25.19.2
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-mqtt>=6.0.0 <6.1.96.1.9
GHSA-c825-6ph3-4h84Mavenorg.apache.activemq:activemq-mqtt>=6.2.0 <6.2.16.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13activemqno fix listedDEBIAN-CVE-2025-66168
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 moreactivemqno fix listedUBUNTU-CVE-2025-66168

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Fuse 7activemq-allFix deferred
Red Hat Fuse 7activemq-mqttFix deferred
Red Hat JBoss Enterprise Application Platform 7activemq-mqttFix deferred
Red Hat JBoss Enterprise Application Platform 8activemq-mqttWill not fix
Red Hat JBoss Enterprise Application Platform Expansion Packactivemq-mqttFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-66168.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON