CVE-2022-41678
Java vulnerability analysis and mitigation

Overview

CVE-2022-41678 is a deserialization vulnerability in Apache ActiveMQ's Jolokia component that affects versions before 5.16.6 and 5.17.0 before 5.17.4. The vulnerability was disclosed in November 2023 and allows authenticated users to potentially trigger arbitrary code execution. The affected systems include Apache ActiveMQ configurations where Jolokia is enabled (Apache Advisory, NVD).

Technical details

The vulnerability exists in ActiveMQ configurations where Jetty allows org.jolokia.http.AgentServlet to handle requests to /api/jolokia. The exploitation chain involves org.jolokia.http.HttpRequestHandler#handlePostRequest creating JmxRequest through JSONObject and calling org.jolokia.http.HttpRequestHandler#executeRequest. Through deeper calling stacks, org.jolokia.handler.ExecHandler#doHandleRequest can be invoked through reflection. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could lead to Remote Code Execution (RCE) through various mbeans, particularly via jdk.management.jfr.FlightRecorderMXBeanImpl which exists on Java version above 11. The attack can result in disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS) (NetApp Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to Apache ActiveMQ versions 5.16.6, 5.17.4, 5.18.0, or 6.0.0 which include a more restrictive Jolokia configuration by default. Alternatively, organizations can restrict the actions authorized on Jolokia or disable Jolokia entirely (Apache Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management