Vulnerability Details : CVE-2022-41678
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.
Products affected by CVE-2022-41678
- cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-41678
61.61%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 98 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-41678
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST |
CWE ids for CVE-2022-41678
-
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.Assigned by: security@apache.org (Primary)
-
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.Assigned by: security@apache.org (Primary)
References for CVE-2022-41678
-
http://www.openwall.com/lists/oss-security/2023/11/28/1
oss-security - CVE-2022-41678: Apache ActiveMQ: Deserialization vulnerability on Jolokia that allows authenticated users to perform RCEMailing List;Third Party Advisory
-
https://security.netapp.com/advisory/ntap-20240216-0004/
CVE-2022-41678 Apache ActiveMQ Vulnerability in NetApp Products | NetApp Product Security
-
https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl
CVE-2022-41678: Apache ActiveMQ: Deserialization vulnerability on Jolokia that allows authenticated users to perform RCE-Apache Mail ArchivesMailing List;Vendor Advisory
-
https://www.openwall.com/lists/oss-security/2023/11/28/1
oss-security - CVE-2022-41678: Apache ActiveMQ: Deserialization vulnerability on Jolokia that allows authenticated users to perform RCE
-
https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt
Vendor Advisory
Jump to