CVE-2022-41678

Scores

EPSS

0.768medium76.8%
0%20%40%60%80%100%

Percentile: 76.8%

CVSS

7.5high3.x
0246810

CVSS Score: 7.5/10

All CVSS Scores

CVSS 3.x
7.5

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Scaner-VS 7 — a modern vulnerability management solution

Uses this database for vulnerability detection. High-speed search, cross-platform, advanced configuration audit, and flexible filtering. Suitable for organizations of any size.
Learn more about Scaner-VS 7

Sources

debiannvdubuntu

CWEs

CWE-287CWE-502

Exploits

Exploit ID: CVE-2022-41678

Source: github-poc

URL: https://github.com/URJACK2025/CVE-2022-41678

Vulnerable Software (8)

Type: Configuration

Product: activemq

Operating System: ubuntu bionic 18.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: ubuntu focal 20.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: ubuntu jammy 22.04

Trait:
{  "fixed": "5.16.1-1ubuntu0.1"}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: ubuntu lunar 23.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: ubuntu trusty 14.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: ubuntu xenial 16.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: activemq

Operating System: debian

Trait:
{  "fixed": "5.17.6+dfsg-1"}

Source: debian

Type: Configuration

Vendor: apache

Product: activemq

Operating System: * * *

Trait:
{  "cpe_match": [    {      "cpe23uri": "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*",      "versionEndExcluding": "5.16.6",      "vulnerable": true    },    {      "cpe23uri": "cpe:2.3:a:apache...

Source: nvd