CVE-2022-41678Apache ActiveMQ: Insufficient API restrictions on Jolokia allow authenticated users to…
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.
What to do
Likely to be exploited: EPSS gives a 17% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | activemq | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | activemq | Fixed | 5.16.1-1ubuntu0.1 | UBUNTU-CVE-2022-41678 |
| Ubuntu 20.04 | activemq | Fix pending | 5.15.11-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-41678 |
| Ubuntu 18.04 | activemq | Fix pending | 5.15.8-2~18.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-41678 |
| Ubuntu 16.04 | activemq | Fix pending | 5.13.2+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-41678 |
| Ubuntu 14.04 | activemq | Fix pending | ||
| Debian 13 | activemq | Fixed | 5.17.6+dfsg-1 | DEBIAN-CVE-2022-41678 |
| Debian 12 | activemq | Fixed | 5.17.2+dfsg-2+deb12u1 | DEBIAN-CVE-2022-41678 |
| Maven library | org.apache.activemq:apache-activemq | Fixed | 5.17.4 | GHSA-53v4-42fg-g287 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache ActiveMQ: affected: before 5.16.6, 5.17.0 to before 5.17.4, 5.18.0 not affected, 6.0.0 not affected; fixed in
5.16.6,5.17.4
Vendor advisories:
- https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt (vendor-advisory)
- https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl (vendor-advisory)
References
- https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt
- https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl
- https://www.openwall.com/lists/oss-security/2023/11/28/1
- https://security.netapp.com/advisory/ntap-20240216-0004/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.