Skip to content
Fencer Vulns
high 8.8

CVE-2022-41678 in the critical feed json

Apache ActiveMQ: Insufficient API restrictions on Jolokia allow authenticated users to perform RCE

published 2023-11-28 2 y ago modified 2026-09-08 2 mo ago also BIT-activemq-2022-41678 , EUVD-2023-2884 , GHSA-53v4-42fg-g287

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
85.7%
EPSS 85.7% chance of exploitation in 30 days, percentile 99.7%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • maven org.apache.activemq:apache-activemq 5.16.6, 5.17.4
  • bitnami activemq 5.16.6, 5.17.4
  • Apache Software Foundation Apache ActiveMQ 5.16.6, 5.17.4, 5.18.0, 6.0.0
  • activemq Debian 12 5.17.2+dfsg-2+deb12u1
  • activemq Debian 13 5.17.6+dfsg-1

debian advisories DEBIAN-CVE-2022-41678

  • activemq Ubuntu 22.04 LTS 5.16.1-1ubuntu0.1
  • activemq Ubuntu Pro 16.04 LTS 5.13.2+dfsg-2ubuntu0.1~esm1
  • activemq Ubuntu Pro 18.04 LTS 5.15.8-2~18.04.1~esm1
  • activemq Ubuntu Pro 20.04 LTS 5.15.11-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-41678

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-41678 updated cvss 7.5

ActiveMQ: Deserialization vulnerability on Jolokia that allows authenticated users to perform RCE

  • Red Hat JBoss Data Grid 7 activemq activemq Red Hat JBoss Fuse 6 activemq activemq Red Hat JBoss Fuse Service Works 6 activemq activemq Red Hat Process Automation 7 activemq activemq
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Middleware Containers for OpenShift amq7/amq-broker-rhel8 7.12.0-7, amq7/amq-broker-init-rhel8 7.12.0-7, amq7/amq-broker-rhel8-operator-bundle 7.12.0-10
    fixed: vendor fix RHSA-2024:2944
  • Red Hat AMQ Broker 7
    fixed: vendor fix RHSA-2024:2945
  • Red Hat Fuse 7.13.0
    fixed: vendor fix RHSA-2024:3354
  • Red Hat A-MQ Clients 2 activemq activemq Red Hat Middleware Containers for OpenShift amq7/amq-broker-rhel8-operator 7.12.0-16 Red Hat build of Apache Camel for Spring Boot 4 activemq activemq Red Hat build of OptaPlanner 8 activemq activemq Red Hat Data Grid 8 activemq activemq Red Hat Integration Camel K 1 activemq activemq
    +3 more products
    Red Hat JBoss Enterprise Application Platform 7 activemq activemq Red Hat JBoss Enterprise Application Platform 8 activemq activemq Red Hat Single Sign-On 7 activemq activemq
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-261-04 updated cvss 8.8

Multiple Open-Source Software Vulnerabilities in Hitachi Energy Asset Suite Product

  • Hitachi Energy Asset Suite <= 9.6.4.5
    affected: fixed in 9.8, mitigation

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

85.69% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Apache ActiveMQ < 5.16.5/5.17.3 - Remote Code Execution nuclei detection template

CVSS scores

assigned by version score vector
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.activemq:apache-activemq
<5.16.6
>=5.17.0, <5.17.4
5.16.6
5.17.4
bitnami activemq
<5.16.6
>=5.17.0, <5.17.4
5.16.6
5.17.4

Affected products

  • Apache Software Foundation Apache ActiveMQ

Classification

Weakness
  • CWE-287 Improper Authentication
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.