Menu

Star on GitHub · 3.2k

CVE-2022-41678

8.8 · HIGH

Once an user is authenticated on Jolokia, he can potentially trigger arbitrary code execution.

Published Nov 28, 2023CWE-287EPSS 85.81%

Overview

CVE-2022-41678 is a high-severity vulnerability. It was published on November 28, 2023 and has a CVSS 3.1 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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 de

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-41678?

CVE-2022-41678 is a high-severity vulnerability. It was published on November 28, 2023 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2022-41678?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-41678?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-41678?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-41678 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all