CVEfocus › CVE database › CVE-2022-41678

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

CVSS 8.8 HighEPSS 17.5% (higher than 98% of CVEs)Published 2023-11-28Updated 2025-11-03Assigner: apache

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.

CWE-287

What to do

Likely to be exploited: EPSS gives a 17% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
4Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04activemqNot affected
vulnerable_code_not_present
Ubuntu 22.04activemqFixed5.16.1-1ubuntu0.1UBUNTU-CVE-2022-41678
Ubuntu 20.04activemqFix pending5.15.11-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-41678
Ubuntu 18.04activemqFix pending5.15.8-2~18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-41678
Ubuntu 16.04activemqFix pending5.13.2+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-41678
Ubuntu 14.04activemqFix pending
Debian 13activemqFixed5.17.6+dfsg-1DEBIAN-CVE-2022-41678
Debian 12activemqFixed5.17.2+dfsg-2+deb12u1DEBIAN-CVE-2022-41678
Maven libraryorg.apache.activemq:apache-activemqFixed5.17.4GHSA-53v4-42fg-g287

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.