# CVE-2022-41678: Apache ActiveMQ: Insufficient API restrictions on Jolokia allow authenticated users to perform RCE

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 85.8%, higher than 99% of CVEs (2026-12-01)
- Published: 2023-11-28T15:08:38.338Z
- Modified: 2026-09-08T08:45:10.186Z
- Also known as: GHSA-53v4-42fg-g287, BIT-ACTIVEMQ-2022-41678
- Weaknesses: CWE-287, CWE-502
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- org.apache.activemq:apache-activemq: before 5.16.6; from 5.17.0 before 5.17.4 (not affected: 5.18.0; 6.0.0)
- org.apache.activemq:apache-activemq (Maven): before 5.16.6; from 5.17.0 before 5.17.4
- apache activemq: before 5.16.6; from 5.17.0 before 5.17.4
- activemq (Bitnami): before 5.16.6; from 5.17.0 before 5.17.4

## Every score

- GitHub: 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`
- NVD: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt> (advisory, vendor-advisory, web)
- <https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl> (advisory, mailing-list, vendor-advisory, web)
- <https://www.openwall.com/lists/oss-security/2023/11/28/1> (web)
- <https://security.netapp.com/advisory/ntap-20240216-0004/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41678> (advisory, web)
- <https://github.com/apache/activemq/pull/958> (web)
- <https://github.com/apache/activemq/commit/5c8d457d9> (web)
- <https://github.com/apache/activemq/commit/6120169e563b55323352431dfe9ac67a8b4de6c2> (web)
- <https://github.com/apache/activemq/commit/bf65929fd> (web)
- <https://github.com/apache/activemq/commit/d8ce1d9ff> (web)
- <https://github.com/apache/activemq> (package)
- <https://security.netapp.com/advisory/ntap-20240216-0004> (web)
- <http://www.openwall.com/lists/oss-security/2023/11/28/1> (web)

## Sources

- CVE List: [CVE-2022-41678](https://www.cve.org/CVERecord?id=CVE-2022-41678), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-53v4-42fg-g287](https://github.com/advisories/GHSA-53v4-42fg-g287), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2022-41678](https://nvd.nist.gov/vuln/detail/CVE-2022-41678), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ACTIVEMQ-2022-41678](https://osv.dev/vulnerability/BIT-ACTIVEMQ-2022-41678), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-41678 · Whole record: https://cve.day/CVE-2022-41678.json · Rebuilt by cve.day 2026-11-25T22:58:19.688Z
