8.8

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

Modified
AliasesUBUNTU-CVE-2022-41678DEBIAN-CVE-2022-41678GHSA-53v4-42fg-g287
Published 28-11-2023Last modified 03-11-2025

Vulnerability summary

CVE-2022-41678 is a high (CVSS 8.8) Improper Authentication vulnerability in apache software foundation apache activemq. EPSS estimates a 85.83% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
85.83%
0%100%
Critical · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 2

Timeline

  1. 28-11-2023
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

85.83%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 85.81% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Apache1 product
Apache software foundation1 product
Debian1 product
  • activemq< 5.17.2+dfsg-2+deb12u1 | < 5.17.6+dfsg-1
Org.apache.activemq1 product
  • apache-activemq< 5.16.6 | ≥ 5.17.0, < 5.17.4
Ubuntu1 product
  • activemq< 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

5 vendors · 5 products

References

19 links
Show all 19 references