cve.bz

CVE-2022-41678 apache activemq: Improper Authentication

8.8 highEPSS 87%Fix available

High (8.8) in apache activemq. EPSS 87% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.activemq:apache-activemq 5.16.6, 5.17.4.

On this page
Once an user is authenticated on Jolokia, he can potentially trigger arbitrary code execution.  In details, in ActiveMQ configurations, jetty allows org.jolokia.http.AgentServlet to handler request to /api/jolokia org.jolokia.http.HttpRequestHandler#handlePostRequest is able to create JmxRequest through JSONObject. And calls to org.jolokia.http.HttpRequestHandler#executeRequest. Into deeper calling stacks, org.jolokia.handler.ExecHandler#doHandleRequest can be invoked through refection. This could lead to RCE through via various mbeans. One example is unrestricted deserialization in jdk.management.jfr.FlightRecorderMXBeanImpl which exists on Java version above 11. 1 Call newRecording. 2 Call setConfiguration. And a webshell data hides in it. 3 Call startRecording. 4 Call copyTo method. The webshell will be written to a .jsp file. The mitigation is to restrict (by default) the actions authorized on Jolokia, or disable Jolokia. A more restrictive Jolokia configuration has been defined in default ActiveMQ distribution. We encourage users to upgrade to ActiveMQ distributions version including updated Jolokia configuration: 5.16.6, 5.17.4, 5.18.0, 6.0.0.

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
87% (unchanged from 86% a week ago; 86% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
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-2022-41678 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41678?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41678?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-2022-41678 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.16.6
Apache Software Foundation Apache ActiveMQfrom 5.17.0 before 5.17.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-53v4-42fg-g287Mavenorg.apache.activemq:apache-activemq<5.16.65.16.6
GHSA-53v4-42fg-g287Mavenorg.apache.activemq:apache-activemq>=5.17.0 <5.17.45.17.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11activemq5.16.1-1+deb11u1DLA-3936-1
Debian12activemq5.17.2+dfsg-2+deb12u1DEBIAN-CVE-2022-41678 DSA-5798-1
Debian13activemq5.17.6+dfsg-1DEBIAN-CVE-2022-41678
Ubuntu22.04:LTSactivemq5.16.1-1ubuntu0.1UBUNTU-CVE-2022-41678 USN-7268-1
UbuntuPro:16.04:LTSactivemq5.13.2+dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2022-41678 USN-6910-1
UbuntuPro:18.04:LTSactivemq5.15.8-2~18.04.1~esm1UBUNTU-CVE-2022-41678 USN-6910-1
UbuntuPro:20.04:LTSactivemq5.15.11-1ubuntu0.1~esm1UBUNTU-CVE-2022-41678 USN-6910-1
UbuntuPro:22.04:LTSactivemq5.16.1-1ubuntu0.1~esm1USN-6910-1

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 statement

This vulnerability is considered moderate severity due to the requirement of authenticated access to exploit the flaw, significantly reducing the risk to systems that enforce strong authentication controls. While it does allow for remote code execution through Jolokia's request handling and Java Management Extensions (JMX), the exploitation pathway is complex and relies on specific conditions, such as the presence of Java 11 or higher and misconfigured or permissive Jolokia settings. an authenticated attacker to achieve remote code execution (RCE) within the ActiveMQ environment.Only an authenticated attacker to achieve remote code execution (RCE) within the ActiveMQ environment. In environments where authentication is well-managed and Jolokia is correctly configured or disabled, the likelihood of successful exploitation is reduced, mitigating the overall impact on system security.

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 AMQ Broker 7Fixed 2024-05-21RHSA-2024:2945
Red Hat Fuse 7.13.0activemqFixed 2024-05-23RHSA-2024:3354
RHEL-8 based Middleware Containersamq7/amq-broker-init-rhel8:7.12.0-7Fixed 2024-05-21RHSA-2024:2944
RHEL-8 based Middleware Containersamq7/amq-broker-rhel8:7.12.0-7Fixed 2024-05-21RHSA-2024:2944
RHEL-8 based Middleware Containersamq7/amq-broker-rhel8-operator-bundle:7.12.0-10Fixed 2024-05-21RHSA-2024:2944
A-MQ Clients 2activemqNot affected
Red Hat build of Apache Camel for Spring Boot 4activemqNot affected
Red Hat build of OptaPlanner 8activemqNot affected
Red Hat Data Grid 8activemqNot affected
Red Hat Integration Camel K 1activemqNot affected
Red Hat JBoss Data Grid 7activemqOut of support scope
Red Hat JBoss Enterprise Application Platform 7activemqNot affected
Red Hat JBoss Enterprise Application Platform 8activemqNot affected
Red Hat JBoss Fuse 6activemqOut of support scope
Red Hat JBoss Fuse Service Works 6activemqOut of support scope
Red Hat Process Automation 7activemqOut of support scope
Red Hat Single Sign-On 7activemqNot affected

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-2022-41678.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-261-04Multiple Open-Source Software Vulnerabilities in Hitachi Energy Asset Suite Product2025-08-26EnergyAsset Suite versions 9.6.4.5 and priornone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

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

References

Check your stackJSON