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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-11-28 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2022-41678, DEBIAN-CVE-2022-41678, GHSA-53v4-42fg-g287, BIT-activemq-2022-41678
- Record: https://cvemate.com/vulnerability/CVE-2022-41678 · JSON: https://cvemate.com/vulnerability/CVE-2022-41678/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 85.829%, percentile 99.728%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache activemq: \< 5.16.6 \| ≥ 5.17.0, \< 5.17.4
- apache activemq: \< 5.16.6 \| ≥ 5.17.0, \< 5.17.4
- debian activemq (Debian): \< 5.17.2+dfsg-2+deb12u1 \| \< 5.17.6+dfsg-1
- ubuntu activemq (Ubuntu): \< 5.13.2+dfsg-2ubuntu0.1~esm1 \| \< 5.15.8-2~18.04.1~esm1 \| \< 5.15.11-1ubuntu0.1~esm1 \| \< 5.16.1-1ubuntu0.1
- org.apache.activemq apache-activemq (Maven): \< 5.16.6 \| ≥ 5.17.0, \< 5.17.4

## References

- <https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt>
- <https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl>
- <https://www.openwall.com/lists/oss-security/2023/11/28/1>
- <https://security.netapp.com/advisory/ntap-20240216-0004/>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html>
- <https://ubuntu.com/security/CVE-2022-41678>
- <https://www.cve.org/CVERecord?id=CVE-2022-41678>
- <https://ubuntu.com/security/notices/USN-6910-1>
- <https://ubuntu.com/security/notices/USN-7268-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-41678>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41678>
- <https://github.com/apache/activemq/pull/958>
- <https://github.com/apache/activemq/commit/5c8d457d9>
- <https://github.com/apache/activemq/commit/6120169e563b55323352431dfe9ac67a8b4de6c2>
- <https://github.com/apache/activemq/commit/bf65929fd>
- <https://github.com/apache/activemq/commit/d8ce1d9ff>
- <https://github.com/apache/activemq>
- <https://security.netapp.com/advisory/ntap-20240216-0004>
- <http://www.openwall.com/lists/oss-security/2023/11/28/1>

---

Data as of 2026-12-05T04:23:29.594Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
