CVE-2022-41678
Scores
EPSS
Percentile: 76.8%
CVSS
CVSS Score: 7.5/10
All CVSS Scores
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Vector Breakdown
CVSS (Common Vulnerability Scoring System) vector provides detailed metrics about vulnerability characteristics
CVSS
Attack Vector
Network (N)
Describes how the vulnerability is exploited
Attack Complexity
High (H)
Describes the conditions beyond the attacker's control
Privileges Required
Low (L)
Describes the level of privileges an attacker must possess
User Interaction
None (N)
Captures the requirement for a human user participation
Scope
Unchanged (U)
Determines if a successful attack impacts components beyond the vulnerable component
Confidentiality Impact
High (H)
Measures the impact to the confidentiality of information
Integrity Impact
High (H)
Measures the impact to integrity of a successfully exploited vulnerability
Availability Impact
High (H)
Measures the impact to the availability of the impacted component
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
Sources
CWEs
Exploits
Vulnerable Software (8)
Type: Configuration
Product: activemq
Operating System: ubuntu bionic 18.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: ubuntu focal 20.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: ubuntu jammy 22.04
{ "fixed": "5.16.1-1ubuntu0.1"}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: ubuntu lunar 23.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: ubuntu trusty 14.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: ubuntu xenial 16.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: activemq
Operating System: debian
{ "fixed": "5.17.6+dfsg-1"}
Source: debian
Type: Configuration
Vendor: apache
Product: activemq
Operating System: * * *
{ "cpe_match": [ { "cpe23uri": "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.16.6", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache...
{ "cpe_match": [ { "cpe23uri": "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.16.6", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.17.4", "versionStartIncluding": "5.17.0", "vulnerable": true } ], "operator": "OR"}
Source: nvd